.floyds-calc-container {
    margin-bottom: 2rem;
}


.payment-method-pill {
	display: inline-flex;
	align-items: center;
	background: #0073aa;
	color: #fff;
	border-radius: 999px;
	padding: 0.4em 1.2em;
	font-size: 1em;
	font-weight: 600;
	margin-left: 0.5em;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	gap: 0.5em;
	font-weight: bold;
	text-align: center;
	text-wrap: balance;
	margin: 1em;
}
.payment-pill-check {
	display: inline-block;
	font-size: 1.2em;
	color: #7fff7f;
	margin-right: 0.3em;
}
/* Form direction above calculator */
.floyds-calc-form-direction {
	margin-bottom: 1em;
	font-size: 1.04em;
	color: #2d3a4a;
	background: #f6f8fa;
	border-left: 4px solid #0073aa;
	padding: 0.7em 1em;
}
/* Encapsulated tiers container */
.floyds-calc-tiers-encapsulated {
	background: #f6f8fa;
	border-radius: 0.125em;
	box-shadow: 0 1px 6px rgba(0,0,0,0.04);
	padding: 1em 0.5em;
	margin-top: 1em;
}

@media (min-width: 600px) {
    .floyds-calc-tiers-encapsulated {
        padding: 1.5em 2em 1.2em 2em;
    }
}
.floyds-calc-tiers-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15em;
	font-weight: 700;
	color: #0073aa;
	background: #eaf6fa;
	border-radius: 0.125em;
	padding: 0.5em 1em;
	margin-bottom: 1em;
	box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
/* Spinner styles */
.floyds-calc-spinner {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60px;
}
.floyds-calc-spinner-icon {
	width: 40px;
	height: 40px;
	border: 4px solid #0073aa;
	border-top: 4px solid #fff;
	border-radius: 50%;
	animation: floyds-spin 1s linear infinite;
}
@keyframes floyds-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
/* Results row spanning both columns */
.floyds-calc-header {
    text-align: center;
    margin: 1em auto;
    background: #0073aa;
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 0.125em;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.floyds-calc-header h2 {
    margin: 0;
}


.floyds-calc-results-separator {
	border: none;
	border-top: 1px solid #e0e0e0;
	margin: 1em 0;
}


.floyds-calc-results-row {
	width: 100%;
	margin: 2em 0 0 0;
	display: flex;
	justify-content: center;
}



/* Breakdown table styles */

.floyds-table-wrapper {
	width: 100%;
	overflow-x: auto;
}


.floyds-calc-breakdown-table-wrapper {
	background: #fff;
	border-radius: 0.125em;
	box-shadow: 0 2px 16px rgba(0,0,0,0.08);
	padding: 1em 0.5em;
	margin: 0 0 2em 0;
	width: 100%;
	overflow: hidden;
	max-width: 100%;
}

@media (min-width: 600px) {
    .floyds-calc-breakdown-table-wrapper {
        padding: 2em 2em 1.5em 2em;
    }
}

.floyds-calc-breakdown-table {
	width: 100%;
	min-width: 350px;
	overflow-x: auto;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}
.floyds-calc-breakdown-table th,
.floyds-calc-breakdown-table td {
	text-align: left;
	padding: 0.6em 0.8em;
	border-bottom: 1px solid #f0f0f0;
	font-size: 1em;
}
.floyds-calc-breakdown-table th {
	color: #0073aa;
	font-weight: 600;
	background: #f6f8fa;
}
.floyds-calc-breakdown-table::not(.next-level-table) tr:last-child td {
	font-weight: 700;
}

.final-pay-table {
	margin-top: 1.5em;
}

.final-pay-table tr:last-child{
	font-weight: 700;
}

.floyds-calc-breakdown-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.floyds-calc-breakdown-table th,
.floyds-calc-breakdown-table td {
    width: 25%; /* Adjust as needed */
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.floyds-calc-breakdown-table th {
    background-color: #efefef !important; /* Optional: Add a background color for headers */
}


.final-pay-section {
	display: flex;
	align-items: center;
	gap: 1.2em;
	margin-top: 1.2em;
}
.final-pay-amount {
	font-size: 1.2em;
	font-weight: 700;
	color: #1a3d1a;
}
.payment-method-pill {
	display: inline-block;
	background: #0073aa;
	color: #fff;
	border-radius: 999px;
	padding: 0.4em 1.2em;
	font-size: 1em;
	font-weight: 600;
	margin-left: 0.5em;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
/* Two-column layout for calculator and tiers */
.floyds-calc-wrapper {
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2em;
	justify-content: center;
	align-items: flex-start;
    border-radius: 0.125em;
}
.floyds-calc-col {
	/* flex: 1 1 340px;
	min-width: 300px;
	max-width: 420px; */
}
@media (max-width: 800px) {
	.floyds-calc-wrapper {
		flex-direction: column;
		gap: 1.5em;
		max-width: 98vw;
	}
	.floyds-calc-col {
		max-width: 100%;
	}
}

/*Next Level Table Styles*/

.next-level-table {
	table-layout: auto;
	width: 100%;
	border-collapse: collapse;
}

.next-level-table th,
.next-level-table td {
	width: auto;
	min-width: 150px;
}

/* Floyd's Code Calculator Base Styles */
.floyds-calc-form {
	width: 100%;
	padding: 1em 0.5em;
	background: #fff;
	border-radius: 0.125em;
	box-shadow: 0 2px 16px rgba(0,0,0,0.08);
	font-family: inherit;
}

@media (min-width: 600px) {
    .floyds-calc-form {
        padding: 2em 1.5em;
    }
}
.floyds-calc-form label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 600;
	color: #222;
}
.floyds-calc-form input[type="number"],
.floyds-calc-form select {
	width: 100%;
	padding: 0.5em 0.75em;
	margin-bottom: 1.2em;
	border: 1px solid #ccc;
	border-radius: 0.125em;
	font-size: 1em;
	background: #fafbfc;
	transition: border 0.2s;
	text-transform: capitalize;
}
.floyds-calc-form input[type="number"]:focus,
.floyds-calc-form select:focus {
	border-color: #0073aa;
	outline: none;
}
.floyds-calc-form button,
.floyds-calc-form input[type="submit"] {
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 0.125em;
	padding: 0.7em 1.5em;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 0.5em;
}
.floyds-calc-form button:hover,
.floyds-calc-form input[type="submit"]:hover {
	background: #005177;
}
.floyds-calc-tiers-info {
	width: 100%;
	background: #fff;
	border-radius: 0.125em;
	font-size: 0.98em;
	color: #222;
	box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    padding: 1em 1.2em;
}
.floyds-calc-tiers-info h5 {
	margin: 0.5em 0 0.2em 0;
	font-size: 1.08em;
	color: #0073aa;
}
.floyds-calc-tiers-info ul {
	margin: 0 0 0.7em 0;
	padding-left: 1.2em;
}
.floyds-calc-tiers-info li {
	margin-bottom: 0.2em;
}
.floyds-calc-results-row {
	margin: 1em auto;
	background: #eaf6ea;
	border-radius: 0.125em;
	padding: 0;
	font-size: 1.05em;
	color: #1a3d1a;
	box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

@media (min-width: 600px) {
    .floyds-calc-results-row {
        padding: 1em;
    }
}


/* Style for the floyds-calc-note callout box */
.floyds-calc-note {
    border: 2px solid #0073aa; /* WordPress blue for the border */
    background-color: #f0f8ff; /* Light blue background */
    padding: 1em; /* Add some padding inside the box */
    border-radius: 8px; /* Rounded corners */
    margin-top: 1.5em; /* Add spacing above the box */
    margin-bottom: 1.5em; /* Add spacing below the box */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.floyds-calc-note h5 {
    margin-top: 0; /* Remove top margin for the heading */
    color: #0073aa; /* WordPress blue for the heading text */
	margin-bottom: 0.5em;
}

.floyds-calc-note p {
    margin: 0.5em 0 0; /* Add spacing between the heading and the paragraph */
    font-size: 1em; /* Standard font size for the paragraph */
    color: #333; /* Dark gray text for readability */
	font-weight: bold;
}

.commission-note {
	font-size: 0.95rem;
	color: #555;
	margin-top: 1em;
	font-style: italic;
}

.floyds-calc-disclaimer {
	font-size: 0.9em;
	color: #555;
	margin-top: 1em;
	font-style: italic;
	text-align: center;
	text-wrap: balance;
}

.floyds-calc-disclaimer .info-icon {
	font-style: normal;
	font-size: 1.1em;
	vertical-align: middle;
	margin-right: 0.3em;
	color: #0073aa;
}