/* Product Designer Styles */

.mc_productdesigner h4 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px;
    font-weight: 600;
    font-size: 16px;
    font-family: "Open Sans";
    color: #fff;
    text-align: left;
  	width: fit-content;
}


.personalisationLogos {
    padding: 15px 0;
    }

/* Subject Section Styles */
.subject-text-section {
    padding: 15px 0;
}

select#subjectSelector {
    width: 100%;
    border: 1px solid rgb(228, 227, 227);
    margin-top: 10px;
    border-radius: 4px;
    height: 40px;
    font-size: 14px;
    padding: 0 10px;
    background: white;
}

.add-subject-btn {
    background-color: #ffb41d !important;
    border: none;
    font-size: 14px;
    color: #202C54;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.add-subject-btn:hover {
    background-color: #202C54 !important;
    color: white;
}

.subject-preview {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #b7cece;
}

.subject-preview .preview-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.subject-preview .preview-text {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

/* Canvas and Designer Styles */
.mc_productdesigner .fade:not(.show) {
    opacity: unset;
}

.canvas-container {
    height: 500px !important;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    display: flex;
    justify-content: center;
}

.canvas-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

i.fa-solid.fa-floppy-disk {
    padding-right: 5px;
}

.product_image {
    width: 100% !important;
}

canvas.productCanvas {
    height: 525px !important;
    width: 454px !important;
    left: unset !important;
}

.leftside {
    width: 50%;
}

.mc_productdesigner {
    width: 50% !important;
}

div#canvasWrapper {
    border: 1px dashed #000000;
    height: 600px;
    width: 650px;
}

/* Modal Styles */
.modal-popup._inner-scroll .modal-inner-wrap {
    height: 80%;
    border: 1px white;
    border-radius: 10px;
    width: 80%;
    max-width: 80%;
    background: #1091a5;
}

body .modals-wrapper .modal-inner-wrap .modal-content {
    padding: 13px 24px 13px 24px;
    border: none;
    background: #1091a5;
}

body .modals-wrapper .modal-inner-wrap header.modal-header {
    display:none;
}

.tab-pane.fade {
    border: 0;
    margin: 0;
}

/* Tab Navigation */
.designing-options-nav-tabs {
    padding-left: 0;
    list-style: none;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0px;
    line-height: 10px;
    background: rgba(255, 255, 255, 0.15);
}

.designing-options-nav-tabs li>a {
    float: left;
    display: flex;
    align-items: center;
    text-align: center;
    text-decoration: none;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    gap: 8px;
    padding: 4px 8px;
    color: #fff;
    padding-right: 15px;
}

.designing-options-nav-tabs li.active:first-child {
    border-bottom: 2px solid #ffb41d;
    border-bottom-left-radius: 5px;
    padding-right: 0;
}

.designing-options-nav-tabs li.active {
    border-bottom: 2px solid #ffb41d;
    padding-bottom: 3px;
    padding-right: 0;
    padding-left: 0;
}

.designing-options-nav-tabs li {
    display: inline-block;
    padding: 5px 0;
    margin-bottom: 0px;
    line-height: 25px;
}

/* Form Controls */
input#filereader {
    display: none !important;
}

.hidden-control {
    display: none !important;
}

.design-part-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px;
    font-weight: 600;
    font-size: 16px;
    font-family: "Open Sans";
    color: #fff;
}

/* Buttons */
button.productdesigner-save {
    background-color: rgb(67, 74, 86);
    border: none;
    font-size: 13.294px;
    color: white;
    border-radius: 30px;
    text-transform: uppercase;
    float: right;
}

.mc_productdesigner button:not(.primary) {
    box-shadow: none;
    background-color: #ffb41d;
    border: none;
    font-size: 16px;
    color: #202C54;
    padding: 10px 20px;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.mc_productdesigner button:not(.primary):hover {
    background-color: #202C54;
    color: white;
}

/* Add to Canvas Button - inline style */
.add-to-canvas-btn {
    font-size: 14px !important;
}

.add-to-canvas-btn:hover {
    background-color: #202C54 !important;
    color: white;
}

/* Subject selector - adjust for inline button */
select#subjectSelector {
    width: auto;
    border: 1px solid rgb(228, 227, 227);
    margin-top: 0;
    border-radius: 4px;
    height: 40px;
    font-size: 14px;
    padding: 0 10px;
    background: white;
}



/* Customer Assets Styles */
.customer-assets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px 0;
}
.personalisationLogos .logoInfo {
  font-size: 10px;
}

.customer-assets-grid .nosavedlogo {
	color: #fff;
	font-size: 12px;
}
.customer-assets-grid .nosavedlogo a, 
.customer-assets-grid .nosavedlogo a:visited {
  color: #ffb41d;
}

.customer-asset-item {
    border: 2px solid #e0e0e0;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.customer-asset-item:hover {
    border-color: #ffb41d;
    background: #fff5f0;
}

.customer-asset-item img {
    max-width: 100%;
    max-height: 80px;
    margin-bottom: 5px;
}


/* Quantity Section */
.personalisation-qty-section {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.personalisation-qty-section input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.qty-input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    color: #333;  
    padding: 0 !important;
}

.qty-btn:hover {
    background: #ffb41d;
    border-color: #ffb41d;
    color: #202C54;
}

.order-minimum-notice {
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 13px;
    color: #856404;
}

.order-minimum-notice i {
    margin-right: 5px;
}

.basket-items-info {
    margin-top: 10px;
    padding: 10px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    font-size: 13px;
    color: #0c5460;
}

.basket-items-info i {
    margin-right: 5px;
}

/* Pricing table badges */
.current-tier-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: bold;
}

.items-needed {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

/* Image Quality Warning Banner */
.image-quality-warning {
    margin-bottom: 15px;
}

.image-quality-warning .warning-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    font-weight: 500;
}

.image-quality-warning .warning-banner i {
    color: #ffc107;
    font-size: 20px;
    flex-shrink: 0;
}

.image-quality-warning .warning-banner span {
    flex: 1;
}

/* Current Logo Section */
.current-logo-section {
    margin-bottom: 20px;
}

.current-logo-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 14px;
}

.current-logo-notice i.fa-check-circle {
    color: #28a745;
    font-size: 18px;
}

.delete-logo-btn {
    margin-left: auto;
    background: #dc3545 !important;
    color: white !important;
    border: none;
    padding: 6px 12px !important;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px !important;
}

.delete-logo-btn:hover {
    background: #c82333 !important;
    color: white !important;
}

/* Upload Image Label/Button */

.upload-image-label .MC_image {
  color: #ffb41d;
}

.upload-image-label {
    display: block;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px dashed #e0a000;
}

.upload-image-label:hover,
.upload-image-label.drag-over {
    background-color: #202C54;
    color: white;
    border-color: #ffb41d;
}
.upload-image-label.drag-over {
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(255, 180, 29, 0.35);
}

.upload-image-label i.MC_image {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.upload-image-label p {
    margin: 0;
    font-size: 14px;
}

/* Price Information Styles */
.price-info-section {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.price-row.total-price {
    border-top: 1px solid #ccc;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 600;
}

.price-row.grand-total {
    font-size: 18px;
    font-weight: bold;
    color: #ffb41d;
}

.price-label {
    color: #666;
}

.price-value {
    color: #000;
    font-weight: 600;
}

/* Presets Section Styles */
.presets-section {
    padding: 15px 0;
}

.save-preset-section,
.load-presets-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.save-preset-section h4,
.load-presets-section h4 {
    margin: 0 0 15px 0;
    color: #164162;
    font-size: 14px;
    font-weight: 600;
}

#presetName,
#presetDescription {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.save-preset-btn {
    width: 100%;
}


/* Preset chips list */
.presets-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin-top: 6px;
}

.preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 145, 165,0.65);
    border-radius: 24px;
    padding: 7px 10px 7px 14px;
    font-size: 14px;
    color: #fff;
    transition: background 0.15s;
}

.preset-chip:hover {
    background: rgba(16, 145, 165,0.85);
}

.preset-chip-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.preset-chip-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.preset-chip-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.preset-chip-delete {
    background: #ffb41d !important;
    color: #202C54 !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 9px 9px !important;
    width: auto !important;
    height: auto !important;
    margin-left: 2px;
    transition: all 0.2s;
}

.preset-chip-delete:hover {
    background: #202C54 !important;
    color: #fff !important;
}

.no-presets-message {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 14px;
}

/* Loading Overlay - ensure it appears above modal */
.loading-mask {
    z-index: 9999999 !important;
}

.loading-mask .loader {
    z-index: 9999999 !important;
}

body._has-modal .loading-mask {
    z-index: 9999999 !important;
}

/* Ensure loader/spinner is visible */
.loader > img,
.loader > p {
    z-index: 9999999 !important;
}

/* Personalisation Button - Banner Style */

#customButton,
#editDesignButton,
#loginToPersonalise {
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    background-color: #1091a5 !important;
    color: #fff;
    border: none !important;
    border-radius: 0;
    cursor: pointer;
    margin: 0;
    transition: all 0.3s;
    box-sizing: border-box;
}

#customButton:hover,
#editDesignButton:hover,
#loginToPersonalise:hover {
    background-color: #202C54;
    color: white;
}

@media (max-width: 768px) {
	.leftside, .mc_productdesigner {
		width: 100% !important;
	}

    /* Hide personalisation buttons on mobile */
    #customButton,
    #editDesignButton,
    #loginToPersonalise {
        display: none !important;
    }
}

/* ===== WIZARD STYLES ===== */

/* Wizard step header */
.wizard-header {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 14px;
}

.wizard-step-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}
.wizard-step-hint {
	color: #ffffff;
}

.wizard-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.wizard-step-dot .dot-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
}

.wizard-step-dot .dot-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-step-dot.active .dot-num {
    background: #ffb41d;
    color: #202C54;
}

.wizard-step-dot.active .dot-label {
    color: #ffb41d;
    font-weight: 700;
}

.wizard-step-dot.done .dot-num {
    background: rgba(255, 255, 255, 0.6);
    color: #1091a5;
}

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    min-width: 20px;
    margin-bottom: 16px;
}

.wizard-step-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.wizard-step-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
}

/* Wizard nav buttons */
.wizard-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    margin-top: 10px;
}

.wizard-nav-btn {
    flex: 1;
    padding: 9px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer;
}

/* Next / Finish button — dark navy */
#wizardNextBtn {
    background-color: #202C54 !important;
    border-color: #202C54 !important;
    color: #fff !important;
}

#wizardNextBtn:hover {
    background-color: #162040 !important;
    border-color: #162040 !important;
}

/* Continue to Summary button — yellow CTA (Issue 29) */
#boxLabelContinueBtn {
    background-color: #ffb41d !important;
    border-color: #ffb41d !important;
    color: #202C54 !important;
    font-weight: 700 !important;
}

#boxLabelContinueBtn:hover {
    background-color: #202C54 !important;
    border-color: #202C54 !important;
    color: #fff !important;
}

#wizardBackBtn {
    background-color: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.4) !important;
    color: #fff !important;
}

/* btn-add-to-design — yellow button inside preset chip */
.btn-add-to-design {
    background-color: #ffb41d !important;
    color: #202C54 !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    width: auto !important;
    height: auto !important;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-add-to-design:hover {
    background-color: #202C54 !important;
    color: #fff !important;
}

/* Skip buttons — yellow CTA style (Issue 23) */
.wizard-skip-btn {
    background: #ffb41d !important;
    color: #202C54 !important;
    border: none !important;
    flex: 0 0 auto;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.wizard-skip-btn:hover {
    background: #202C54 !important;
    color: #fff !important;
}

/* Inline skip button inside step hint text */
.wizard-inline-skip {
    display: inline-block;
    padding: 3px 12px !important;
    font-size: 12px !important;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1.6;
}

/* "or" on its own line in hint text */
.wizard-hint-or {
    display: block;
    margin-top: 6px;
    font-style: italic;
    opacity: 0.75;
}

/* Wizard start screen */
.wizard-start-actions {
    padding: 16px 0 8px;
}

.wizard-start-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 14px 0;
    padding: 0;
    border: none;
    text-transform: capitalize;
    text-align: center;
}

/* Canvas preview label above the product image */
.canvas-preview-label {
    padding: 6px 4px 8px;
    text-align: center;
}

.canvas-preview-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 3px 0;
    padding: 0;
    border: none;
}

.canvas-preview-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.logo-disclaimer {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid #ffb41d;
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.logo-disclaimer .fa-circle-info {
    margin-right: 6px;
    color: #ffb41d;
}

.wizard-create-btn {
    width: 100%;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background: #ffb41d !important;
    color: #202C54 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.wizard-create-btn:hover {
    background: #202C54 !important;
    color: #fff !important;
}

/* Hide "Save Current Design" on start screen — it lives inside presets pane */
#design-with-presets .save-preset-section {
    display: none;
}

/* Handle adjustment tooltip — white box, blue text (Issue 22) */
.handle-adjust-tip {
    background: #fff;
    color: #1979c3;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    margin: 10px 0 6px;
    line-height: 1.5;
}
.handle-adjust-tip i {
    margin-right: 5px;
}

/* Centre-button row inside wizard panels */
.panel-centre-btn-row {
    margin-top: 10px;
}

/* Start Again — ghost button (Issue 19) */
.wizard-start-again-btn {
    background: transparent !important;
    color: rgba(255,255,255,0.65) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
    margin-top: 12px !important;
    width: auto !important;
    display: inline-block !important;
}
.wizard-start-again-btn:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

/* Override Bootstrap .tab-pane display:none so wizard JS can show/hide directly */
.mc_productdesigner .tab-pane {
    display: none;
}
.mc_productdesigner .tab-pane.active {
    display: block;
}

/* Remove Bootstrap fade opacity so wizard JS controls visibility cleanly */
.mc_productdesigner .tab-pane.fade {
    opacity: 1;
    transition: none;
}

/* Wizard step labels */
#MC_label,
[id="MC_label"] {
    font-size: 20px;
    border: none !important;
    outline: none;
}

.tab-pane  #MC_label {
    color: #fff;
}

#addText {
    margin-top: 0px !important;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.4;
}

/* Artwork guide link — visible on dark designer panel backgrounds */
.artwork-guide-link, .artwork-guide-link:visited {
    color: #ffb41d;
    text-decoration: underline;
}
.artwork-guide-link:hover {
    color: #fff;
}
.artwork-guide-hint {
    font-size: 12px;
    margin: 0 0 10px;
    opacity: 0.85;
    color: #fff;
}
.artwork-guide-hint .artwork-guide-link {
    color: #ffb41d;
}

/* All selects inside the designer: consistent 5px radius */
.mc_productdesigner select,
#design-with-text select,
#design-with-subject select,
#design-with-image select {
    border-radius: 4px !important;
}

/* Personalisation button row in hbsSecondary actions */
.personalisation-action-row #personalisationButtonWrapper {
    display: block;
}

.actions.hbsSecondary.personalisedButtons {
    display: flex !important;
    padding: 15px 15px !important;
}
    
.personalisation-action-row #personalisationButtonWrapper button {
    width: 100%;
    font-size: 12px;
	border-radius: 4px;
	margin-right: 0px;
	font-family: 'lato';
	font-weight: 900;
	text-align: center;
    padding: 10px 5px;
}

.personalisation-button-wrapper p { 
    font-weight: 900;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    margin-bottom: 0;
}


/* Each .row becomes a column */
.actions.hbsSecondary.personalisedButtons .row {
    display: flex;
    flex-direction: column;
    flex: 1 1 50%;
    max-width: 50%;
    width: auto;
    margin: 15px 0;
    flex-wrap: unset;
}

/* Each .col-sm-6 becomes a full-width row */
.actions.hbsSecondary.personalisedButtons .col-sm-6 {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    float: none;
    margin-bottom: 10px;
    max-height: 40px;
}

/* Saved school name chips */
.saved-names-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.saved-name-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 4px 10px 4px 12px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.saved-name-chip:hover {
    background: rgba(255,255,255,0.28);
}
.delete-name-chip {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 1px 4px !important;
}
.delete-name-chip:hover {
    color: #fff;
}

.box-tocart .fieldset:last-child {
  margin-bottom: 0;
}

/* ── Personalisation pricing link row ───────────────────────────────── */
.pricing-link-row {
    clear: both;    /* sit below any floated col-sm-6 siblings */
    float: none;
    width: 100%;
    display: block;
    text-align: center;
    padding-top: 6px;
}

/*
 * Override the theme rule:
 *   .catalog-product-view … .actions a  (specificity 0,6,1)
 * which turns every <a> inside .actions into a navy button with a heart icon.
 *
 * Using  a#viewPricingPopupLink  (type + ID = specificity 1,0,1) wins
 * against any class-only chain, plus !important as a belt-and-braces.
 */
a#viewPricingPopupLink {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffb41d !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    text-transform: none !important;
    text-align: inherit !important;
    text-decoration: underline !important;
    text-decoration-style: dotted !important;
    text-underline-offset: 2px !important;
    line-height: normal !important;
    cursor: pointer;
    transition: color 0.15s;
}
/* Remove the heart icon injected by the theme's .actions a::before rule */
a#viewPricingPopupLink::before {
    content: none !important;
    display: none !important;
}
a#viewPricingPopupLink:hover,
a#viewPricingPopupLink:focus {
    background: transparent !important;
    color: #e09800 !important;
    text-decoration: underline !important;
}

/* ── Pricing popup overlay ───────────────────────────────────────────── */
.pricing-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pricing-popup-dialog {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-popup-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #202C54;
    padding: 8px 12px;
    flex-shrink: 0;
}

.pricing-popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}
.pricing-popup-close:hover {
    color: #fff;
}

.pricing-popup-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Prevent background scroll when popup is open */
body.pricing-popup-open {
    overflow: hidden;
}
