/* Revenue Calculator Styles - Updated for Bootstrap 5 */

/* --- Main Calculator Container --- */
.revenue-calculator-main {
/*     background-color: #EDEDED; */
	padding: 24px 0px;
}

.calculator-container {
	display: none;
}

.calculator-container:has(*) {
	display: block;
}

.calculator-container {
/*     background-color: #EDEDED; */
    padding: 48px 0px 16px 0px;
    border-radius: 24px;
/*     max-width: var(--plp-container-max); */
    width: 100%;
    margin: 0 auto;
	overflow: visible;
}

.calculator-container .container-fluid {
    padding: 0;
}

/* --- Layout Control --- */
/* Single Domain Layout (default) */
.single-domain-layout {
    display: flex;
}

.multi-domain-layout {
    display: none;
}

/* Multi-Domain Layout */
.calculator-container.multi-domain .single-domain-layout {
    display: none;
}

.calculator-container.multi-domain .multi-domain-layout {
    display: flex;
}

.calculator-container.multi-domain .single-domain-only {
    display: none;
}

/* --- Main Heading Style --- */
.calculator-heading {
    font-family: var(--plp-font-heading);
    font-size: 32px;
    color: #111827;
    margin: 0 0 40px 0;
    font-weight: 700;
    line-height: 1.2;
}

/* --- Domain Tabs Column --- */
.domain-tabs-section {
    padding-right: 30px;
    max-height: 350px;
	overflow: auto;
}

.domain-tabs-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.domain-tab {
    background-color: transparent;
    border: none;
/*     border-right: 3px solid transparent; */
    padding: 16px 16px;
    border-radius: 0;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	border-radius: 6px 6px 0 0;
}

.domain-tab.active {
    background-color: rgba(47, 100, 170, 0.075);
    color: #111827;
    border-bottom: 3px solid #2F64AA;
}

.domain-tab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.domain-tab .domain-name {
    flex: 1;
    cursor: pointer;
}

.domain-tab .remove-domain {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: rgba(107, 114, 128, 0.8);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
}

.domain-tab .remove-domain:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.domain-tab .remove-domain svg {
    width: 12px;
    height: 12px;
}

.add-domain-btn {
    margin-top: 16px;
    color: #6B7280;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    padding: 10px 16px;
    transition: color 0.2s;
    width: 100%;
	position: sticky;
    bottom: 0;
    background: #EDEDED;
}

.add-domain-btn:hover {
    color: #2F64AA;
}

.value-box {
   width: 100%;
}

.input-section {
	padding: 0;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .domain-tabs-section {
        padding-right: 15px;
        min-height: auto;
    }
    
    .domain-tabs-column {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .domain-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
        border-right: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
    }
    
    .domain-tab.active {
        border-right: none;
        border-bottom: 3px solid #2F64AA;
    }
    
    .domain-tab .domain-name {
        text-align: center;
    }
    
    .domain-tab .remove-domain {
        margin-left: 4px;
        width: 18px;
        height: 18px;
    }
    
    .add-domain-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
        margin-top: 0;
    }
}

/* --- Input and Results Sections --- */
.input-section {
	padding: 0;
/*     padding-right: 30px; */
}

.results-section {
    padding-left: 30px;
	max-width: 450px;
    margin-left: auto;
}

.input-column {
    width: 100%;
}

.slider-group {
    margin-bottom: 24px;
}

.slider-group label {
    display: block;
    font-size: 18px;
    color: #4B5563;
    margin-bottom: 12px;
    font-weight: 700;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Slider Track Styling */
/* input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background: #D9D9D9;
    border-radius: 6px;
    outline: none;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 21px;
    height: 20px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="21" height="20" viewBox="0 0 21 20" fill="none"><rect x="0.244531" y="0.1" width="19.8" height="19.8" rx="3.9" fill="%232F64AA"/><path d="M7.14453 5H9.14453V7H7.14453V5ZM11.1445 5H13.1445V7H11.1445V5ZM7.14453 9H9.14453V11H7.14453V9ZM11.1445 9H13.1445V11H11.1445V9ZM7.14453 13H9.14453V15H7.14453V13ZM11.1445 13H13.1445V15H11.1445V13Z" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 21px;
    height: 20px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="21" height="20" viewBox="0 0 21 20" fill="none"><rect x="0.244531" y="0.1" width="19.8" height="19.8" rx="3.9" fill="%232F64AA"/><path d="M7.14453 5H9.14453V7H7.14453V5ZM11.1445 5H13.1445V7H11.1445V5ZM7.14453 9H9.14453V11H7.14453V9ZM11.1445 9H13.1445V11H11.1445V9ZM7.14453 13H9.14453V15H7.14453V13ZM11.1445 13H13.1445V15H11.1445V13Z" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: none;
} */

.value-box {
	
	border-radius: 8px;
	border: solid 1px #E2E8F0;
	padding: 10px;
	background-color: #F8FAFC;
	font-weight: 700;
	font-size: 24px;
	line-height: 150%;
	display: flex;
	text-align:center;
	justify-content: center;
	color: #1B212D;
	margin: 24px 0px 48px 0px;
	
/*     border-radius: 12px;
    border: 1px solid rgba(32, 32, 32, 0.08);
    background: rgba(32, 32, 32, 0.04);
    backdrop-filter: blur(6px);
    padding: 2px 16px;
    width: 130px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    font-family: Archivo;
    font-size: 18px;
    outline: none;
    text-align: center; */
}

.value-box:focus {
    border-color: #2F64AA;
    box-shadow: 0 0 0 2px rgba(47, 100, 170, 0.2);
}

.button-group {
    margin-top: 40px;
    display: flex;
    gap: 16px;
}

.btn {
    padding: 0px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: #2F64AA;
    color: #FFFFFF;
    border-radius: 8px;
    border: 0;
    font-size: 18px;
	padding: 8px 24px;
	font-weight: 500;
}

.btn-primary:hover {
    background-color: #1e4a7a;
    border-color: #1e4a7a;
}

.btn-secondary {
    color: #2F64AA;
    border-radius: 6px;
    border: 1px solid rgba(47, 100, 170, 0.40);
    background: rgba(47, 100, 170, 0.20);
    font-size: 18px

}

.btn-secondary:hover {
    background: rgba(47, 100, 170, 0.30);
}

/* Hide Add Domain button in multi-domain mode */
.calculator-container.multi-domain .btn-add-domain {
    display: none;
}

/* --- Results Column --- */
.results-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.revenue-block {
    width: 100%;
}

.revenue-block .label {
    color: #202020;
    font-family: Archivo;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.72px;
    margin-bottom: 5px;
}

.revenue-display {
    border-radius: 12px;
    border: 1px solid rgba(32, 32, 32, 0.08);
    background: rgba(32, 32, 32, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 16px 24px;
    text-align: left;
    width: 100%; 
}

.revenue-display .value {
    color: #202020;
    font-family: var(--plp-font-heading);
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.revenue-display .value span {
    font-size: 32px;
    font-weight: 700;
    margin-left: 8px;
}

.bar-graph {
    display: flex;
    align-items: flex-end;
    height: 225px;
    width: 100%;
    margin-top: 40px;
    gap: 4px;
    overflow: visible;
}

.bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: height 0.3s ease;
	position: relative;
}

.bar::before {
    content: "";
    position: absolute;
    bottom: 0;
    height: 110%;
    background: #417ECF1A;
    width: 100%;
    z-index: 1;
    border-radius: 8px 8px 0 0;
}

#cr-bar, #cr-bar-multi { background-color: rgba(65, 126, 207, 0.24); }
#aov-bar, #aov-bar-multi { background-color: rgba(65, 126, 207, 0.32); }
#sessions-bar, #sessions-bar-multi { background-color: rgba(65, 126, 207, 0.40); }

.results-column .helper-text-top {
    width: 100%;
    text-align: center;
    color: #6B7280;
    font-size: 12px;
    margin-top: 16px;
}

/* --- Footer Text --- */
.helper-text-bottom {
    color: #6B7280;
    font-size: 12px;
    text-align: center;
    margin-top: 24px;
    width: 100%;
}

.helper-text-bottom p {
    margin-bottom: 0px;
}

.helper-text-bottom .arrow {
    margin-top: 8px;
    font-size: 16px;
}

/* --- Shopper Table Section --- */
.shopper-table-section {
    margin-top: 40px;
}

.calculator-container.multi-domain .shopper-table-section {
    margin-top: 0;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-header {
    margin-bottom: 24px;
}

.modal-title {
    font-family: var(--plp-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px !important;
    cursor: pointer;
    color: #6B7280;
    padding: 8px !important;
    line-height: 1;
}

.modal-close:hover {
    color: #111827;
}

.modal-body {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background-color: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2F64AA;
    box-shadow: 0 0 0 3px rgba(47, 100, 170, 0.1);
}

.form-input::placeholder {
    color: #9CA3AF;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel {
    background-color: #F3F4F6;
    color: #374151;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.btn-cancel:hover {
    background-color: #E5E7EB;
}

/* --- Shopper Table Styles with Funnel Design --- */

.shopper-table tbody.funnel-bg {
/*     background-image: url("data:image/svg+xml,%3Csvg width='852' height='451' viewBox='0 0 852 451' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg style='mix-blend-mode: multiply'%3E%3Cpath d='M0 0H852L793 82H59L0 0Z' fill='rgba(65, 126, 207, 0.08)'/%3E%3Cpath d='M59 82H793L658 267H194L59 82Z' fill='rgba(65, 126, 207, 0.06)'/%3E%3Cpath d='M194 267H658L521 451H331L194 267Z' fill='rgba(65, 126, 207, 0.04)'/%3E%3C/g%3E%3C/svg%3E"); */
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.shopper-table-container {
    padding: 24px 72px;
    overflow: visible;
    margin: 48px 0;
    max-width: var(--plp-container-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.shopper-table {
    width: 100%;
    position: relative;
    z-index: 1;
    border: none;
    margin-bottom: 0px;
	border-spacing: 0;
    border-collapse: separate;
}

/* Table Header */
/* tbody.funnel-bg {
    border-top: 1px solid #262626 !important;
} */
.shopper-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 500;
    color: #6B7280;
    border-right: none;
	text-transform: unset;
	border: 0;
	border-bottom: 1px solid #262626 !important;
}
tbody tr.funnel-separator:first-child td {
/* 	border: 0; */
}

/* Center align specific columns */
.shopper-table th:nth-child(n+2),
.shopper-table tbody td:nth-child(n+2) {
    text-align: center;
}

.shopper-table tfoot td:nth-child(3) {
    text-align: center;
}

/* Table Body */
.shopper-table tbody td {
    color: #202020;
    font-family: Archivo;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border: none;
    padding: 18px 0px 18px 0px;
}

.shopper-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
/*     cursor: pointer; */
    position: relative;
}

.shopper-table tbody tr:last-child {
    border-bottom: none;
}

/* Funnel Section Separators */
tbody tr.funnel-separator {
    border: none;
}
tbody tr.funnel-separator td {
    background-color: transparent;
    color: rgba(32, 32, 32, 0.60);
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 10px 0px 1px 0px;
    text-transform: none;
    border-top: 7px rgba(235, 235, 235, 0.90) solid;
    text-align: left;
}

/* Shopper Group Column Styling */
.shopper-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shopper-group .icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.shopper-group .name {
    font-weight: 600;
}

.shopper-group .name a {
    color: #2F64AA;
    text-decoration: none;
    font-size: 18px;
}

.shopper-link {
    color: #2F64AA;
    text-decoration: none;
}

.shopper-link:hover {
    text-decoration: underline;
}

/* ROI Column Styling */
.roi-container {
    position: relative;
    display: inline-block;
	cursor: pointer;
}

.roi-value {
    font-weight: 700;
    color: #059669;
}

/* Highlighted Row Styling */
.shopper-table tbody tr.is-highlighted {
    background-color: #E0E7FF;
}

.shopper-table tbody tr.is-highlighted::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #2F64AA;
}

/* Table Footer */
.shopper-table tfoot {
    border-top: 1px solid #262626 !important;
}
.shopper-table tfoot td {
    padding: 24px 16px 0 16px;
    border-right: none;
    border-bottom: none;
    text-align: end;
	vertical-align: middle;
}

/* Total Revenue Button Styling */
.total-revenue-button {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 100px;
    border: 2px solid #2F64AA;
    background: rgba(47, 100, 170, 0.20);
    color: #202020;
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.5px;
}
/* todo shopper pricing tooltip */
.per-shopper-tooltip {
    opacity: 0;
    position: absolute;
    background-color: transparent;
    border: 2px solid rgba(47, 100, 170, 0.40);
    border-radius: 8px;
    padding: 5px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    white-space: nowrap;
    z-index: 2;
    min-width: 120px;
    transition: opacity 0.25s ease-in-out;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    top: 24px;
}
.roi-container:hover .per-shopper-tooltip {
    opacity: 1;
}
.per-shopper-tooltip .tooltip-value {
    color: rgba(32, 32, 32, 0.90);
    font-family: Archivo;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0px;
}

.per-shopper-tooltip .tooltip-label {
    color: rgba(32, 32, 32, 0.80);
    font-family: Archivo;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.56px;
}
/* todo shopper pricing tooltip */



/* V2 */

.revenue-calculator-heading {
	font-weight: 600;
	font-size: 48px;
	line-height: 54.6px;
	vertical-align: middle;
	text-align: center;
	color: #1B212D;
	margin-bottom: 16px;
}

.revenue-calculator-description {
	font-weight: 400;
	font-size: 16px;
	line-height: 100%;
	text-align: center;
	color: #1B212D;
	margin-bottom: 48px;
}

.revenue-calculator-card {
	background-color: #ffffff;
	border-radius: 16px;
	border: solid 1px #F1F5F9;
	box-shadow: 0px 10px 15px #00000006;
	padding: 48px;
}

.revenue-calculator-metric-container {
	display: flex;
	gap: 60px;
}

.revenue-calculator-metrics {
	flex: 1 1 0%;
}

.revenue-calculator-metric-name {
	font-weight: 600;
	font-size: 14px;
	line-height: 100%;
	vertical-align: center;
	color: #6C7C93;
}

.revenue-calculator-mertic-value {
/* 	border-radius: 8px;
	border: solid 1px #E2E8F0;
	padding: 10px;
	background-color: #F8FAFC;
	font-weight: 700;
	font-size: 24px;
	line-height: 150%;
	display: flex;
	justify-content: center;
	color: #1B212D;
	margin: 24px 0px 48px 0px; */
/* 	box-shadow: 0px 5px 10px #00000006; */
/* 	background: linear-gradient(
		to right,
		#003AAE 0%,
		#003AAE 0%,
		#E5E7EB 0%,
		#E5E7EB 100%
	); */
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 50px;
    outline: none;
    background-repeat: no-repeat;
		background: linear-gradient(
		to right,
		#003AAE 0%,
		#003AAE 0%,
		#E5E7EB 0%,
		#E5E7EB 100%
	);
	font-family: var(--plp-font-body);
	font-weight: 500;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
	background: #003AAE;
	box-shadow: 0 0 0 5px rgba(0, 58, 174, 0.25);
	border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
	background: #003AAE;
    cursor: pointer;
	box-shadow: 0 0 0 5px rgba(0, 58, 174, 0.25);
	border-radius: 50%;
}

.revenue-calculator-range-container {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}

.revenue-calculator-range {
	font-weight: 500;
	font-size: 14px;
	line-height: 100%;
	vertical-align: center;
	color: #6C7C93;
}

.revenue-calculator-result-container {
	margin-top: 48px;
	border-radius: 16px;
	border: solid 1px #D9F4E7;
	background: #F1FFFB;
	padding: 48px;
}

.revenue-calculator-result-heading {
	font-weight: 700;
	font-size: 16px;
	line-height: 120%;
	color: #1E293B;
	text-align: center;
	margin-bottom: 12px;
}

.revenue-calculator-result-heading span {
	display: inline-block;
	margin-left: 10px;
}

.revenue-calculator-result-value {
	font-weight: 600;
	font-size: 80px;
	letter-spacing: 0.1%;
	text-align: center;
	color: #22af46;
	margin-bottom: 12px;
	line-height: 100%;
	padding-left: 135px;
}

.revenue-calculator-result-value span {
	font-weight: 700;
	font-size: 36px;
	color: #475569;
	line-height: 100%;
}

.revenue-calculator-result-message {
	font-weight: 400;
	font-size: 14px;
	line-height: 120%;
	letter-spacing: 0%;
	text-align: center;
	color: #475569BF;
	margin-bottom: 0;
}



/* .shopper-funnel-shopper[data-active="true"]:first-child::after {
	right: -28px;
}

.shopper-funnel-shopper[data-active="true"]:not(:first-child):not(:nth-last-of-type(2))::before {
	left: 50%;
	transform: translateX(-50%);
	border-radius: 0 0 14px 14px;
}

.shopper-funnel-shopper[data-active="true"]:nth-last-of-type(2)::before {
	left: 12px;
	border-bottom-left-radius: -14px;
} */

/* V2 */

/* --- Bootstrap-Compatible Responsive Design --- */

/* Large screens (Bootstrap lg+) */
@media (min-width: 992px) {
    .shopper-table th:nth-child(3),
    .shopper-table tbody td:nth-child(3),
    .shopper-table tfoot td:nth-child(3) {
        width: 250px;
    }
    /* todo shopper pricing tooltip */
    /* Per Shopper Banner */
    /* .per-shopper-tooltip {
        display: block;
        position: absolute;
        right: -20px;
        top: 144px;
        background-color: transparent;
        border: 2px solid rgba(47, 100, 170, 0.40);
        border-radius: 8px;
        padding: 5px 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        text-align: left;
        white-space: nowrap;
        z-index: 2;
        min-width: 120px;
    } */
}

/* Medium screens (Bootstrap md) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .calculator-container {
        padding: 32px 0px;
    }
    
    .calculator-heading {
        font-size: 28px;
    }
    
    .revenue-display .value {
        font-size: 40px;
    }
    
    .revenue-display .value span {
        font-size: 28px;
    }
    
    .results-section {
        padding-left: 20px;
    }
    
    .domain-tabs-section {
        padding-right: 20px;
    }
	
	.revenue-calculator-metric-container {
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.revenue-calculator-metrics {
		flex: 1 0 30%;
		max-width: 50%;
	}
	
	.input-section {
		padding-right: 0px;
	}
}

@media (max-width: 768px) {
	.revenue-calculator-result-value {
		padding-left: 120px;
	}
	
	.revenue-calculator-result-value span {
		font-size: 30px;
	}
}

/* Small screens (Bootstrap sm and below) */
@media (max-width: 767.98px) {
    .calculator-container {
        padding: 24px 0px;
    }
    
    .calculator-heading {
        font-size: 24px;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .input-section,
    .results-section,
    .domain-tabs-section {
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 24px;
    }
    
    /* Stack layout for mobile */
    .single-domain-layout {
        flex-direction: column;
        padding: 10px 20px;
    }
    
    .multi-domain-layout {
        flex-direction: column;
    }
    
    .domain-tabs-column {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .domain-tab {
        border-right: none;
        border-bottom: 3px solid transparent;
        padding: 8px 16px;
        text-align: center;
        flex: 1;
        min-width: 100px;
    }
    
    .domain-tab.active {
        border-bottom: 3px solid #2F64AA;
        border-right: none;
    }
    
    .revenue-display .value {
        font-size: 36px;
    }
    
    .revenue-display .value span {
        font-size: 24px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-primary {
        width: 100%;
    }
    
    /* Shopper table mobile adjustments */
    .shopper-table-container {
        padding: 16px;
        margin-top: 0px;
    }
    
    .shopper-table thead th,
    .shopper-table tbody td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .funnel-separator td {
        padding: 16px 8px 6px 8px;
        font-size: 12px;
        border: none;
    }
    
    .shopper-group {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .shopper-group .icon {
        width: 20px;
        height: 20px;
    }
    /* todo shopper pricing tooltip*/
    /* .per-shopper-tooltip {
        padding: 8px 12px;
        min-width: 100px;
        position: relative;
        margin-top: 12px;
    }
    
    .per-shopper-tooltip .tooltip-value {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    .per-shopper-tooltip .tooltip-label {
        font-size: 12px;
        letter-spacing: 0.4px;
    } */
    
    .total-revenue-button {
        font-size: 12px;
        padding: 6px 14px;
        letter-spacing: 0.3px;
        border-radius: 0px;
        width: 170px;
    }
	
	.revenue-calculator-metric-container {
		flex-wrap: wrap;
		justify-content: center;
	}
	
	.revenue-calculator-metrics {
		flex: 1 0 30%;
		max-width: 50%;
	}
	
	.input-section {
		padding-right: 0px;
	}
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .calculator-container {
        padding: 16px 0px;
    }
    
    .calculator-heading {
        font-size: 20px;
    }
    
    .slider-control {
        flex-direction: column;
        gap: 12px;
    }
    
    .value-box {
        width: 100%;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .revenue-display .value {
        font-size: 32px;
    }
    
    .revenue-display .value span {
        font-size: 20px;
    }
	
	.domain-list-wrapper {
		margin-right: 0%;
		margin-left: 0%;
	}
	
	.revenue-calculator-metric-container {
		flex-direction: column;
	}
	
	.revenue-calculator-metrics {
		flex: 1 0 30%;
		max-width: 100%;
	}
	
	.revenue-calculator-card {
		padding: 32px;
	}
	
	.input-section {
		padding-right: 0;
	}
	
	.revenue-calculator-result-value {
		padding-left: 0px;
	}
}

/* ===== REMOVE DOMAIN UI STYLES ===== */

/* Domain tab with remove button - Additional styles for multi-domain mode */
.domain-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.domain-tab .domain-name {
    flex: 1;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    user-select: none;
}

.domain-tab.active .domain-name {
    color: #111827;
}

.domain-tab .remove-domain {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: rgba(239, 68, 68, 0.8);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    opacity: 0;
    transform: scale(0.9);
}

.domain-tab:hover .remove-domain {
    opacity: 1;
    transform: scale(1);
}

.domain-tab .remove-domain:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: #DC2626;
    transform: scale(1.05);
}

.domain-tab .remove-domain svg {
    width: 12px;
    height: 12px;
}

/* Error display styles */
#error-display {
    position: fixed;
    top: 50px;
    right: 30px;
    background-color: #FEF2F2;
    color: #DC2626;
    padding: 16px 28px;
    border-radius: 8px;
    border: 1px solid #FCA5A5;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-width: 300px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

/* Success display styles */
#success-display {
    position: fixed;
    top: 50px;
    right: 30px;
    background-color: #bfffbf;
    color: #086508;
    padding: 16px 28px;
    border-radius: 8px;
    border: 1px solid #086508;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-width: 300px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#domain-error {
    display: none;
    color: #DC2626;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px;
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 4px;
}

/* Enhanced modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
}

.modal-content input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.modal-content input[type="text"]:focus {
    outline: none;
    border-color: #2F64AA;
}

.modal-content .button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.modal-content button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-content .btn-primary {
    background-color: #2F64AA;
    color: white;
}

.modal-content .btn-primary:hover {
    background-color: #1E40AF;
}

.modal-content .btn-secondary {
    background-color: #E5E7EB;
    color: #374151;
}

.modal-content .btn-secondary:hover {
    background-color: #D1D5DB;
}

/* Loading state styles */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #E5E7EB;
    border-top: 2px solid #2F64AA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.calculator-section input.value-box {
    text-align: center;
}

.plp-link-icon {
	opacity: 0;
	transition: all 0.3s ease;
	margin-left: 0.5rem;
}

.shopper-table tr[data-shopper]:hover .plp-link-icon {
	opacity: 1;
}

.shopper-table tr[data-shopper]:hover .shopper-group .name a {
	text-decoration: underline;
    text-underline-offset: 4px;
}

.finalise-button-container > button {
	background: #003AAE;
    color: white;
    padding: 12px 8px;
    border-radius: 8px 0px 0px 8px;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.finalise-button-container > button:disabled {
	cursor: not-allowed;
	pointer-events: all !important;
	background: #003AAE;
    color: white;
    padding: 12px 8px;
    border-radius: 8px 0px 0px 8px;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: padding-right 0.3s ease;
/* 	height: 124px; */
}

.finalise-button-container > button:disabled::before {
	content: "";
	color: white;
    width: 4px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: loading .5s infinite alternate linear;
    display: block;
    transform: rotate(90deg);
    position: absolute;
    top: 33px;
	border-radius: 8px 0px 0px 8px;
}

.finalise-button-container > button:hover {
	background: #003AAE;
	padding-right: 20px;
	padding-left: 20px;
}

.funnel-section-0 td {
	background: #417ECF14 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.funnel-section-1 td {
	background: #417ECF0F !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.funnel-section-2 td {
	background: #417ECF0A !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

@keyframes loading {
  50%  {box-shadow: 19px 0 0 3px, 38px 0 0 7px, 57px 0 0 3px}
  100% {box-shadow: 19px 0 0 0  , 38px 0 0 3px, 57px 0 0 7px}
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .domain-tab .remove-domain {
        width: 18px;
        height: 18px;
    }
    
    .domain-tab .remove-domain svg {
        width: 10px;
        height: 10px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .modal-content h3 {
        font-size: 20px;
    }
    
    #error-display {
        top: 10px;
        right: 10px;
        max-width: 250px;
        font-size: 12px;
    }
}

.revenue-calculator-card {
    position: relative;
    overflow: hidden;
}

.revenue-calculator-card .progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #22af46;
    border-radius: 0 3px 3px 0;
    transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.revenue-calculator-card .progress-line.active { opacity: 1; }
.revenue-calculator-card .progress-line.success { background: #16a34a; }

