/**
 * FlexCheckout Public Styles
 * Based on provided checkout design screenshots
 */

/* FlexCheckout now uses FlexSuite Core variables */
:root {
    --flexcheckout-primary: var(--flexsuite-primary, #1E55B3);
    --flexcheckout-secondary: var(--flexsuite-secondary, #06AFBE);
    --flexcheckout-white: var(--flexsuite-white, #ffffff);
    --flexcheckout-border: var(--flexsuite-border, #e2e8f0);
    --flexcheckout-text: var(--flexsuite-text, #1a202c);
    --flexcheckout-text-muted: var(--flexsuite-text-muted, #718096);
    --flexcheckout-background: var(--flexsuite-light-gray, #f8f9fa);
    --flexcheckout-shadow: var(--flexsuite-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Force radio buttons to be visible - Override any theme/plugin CSS */
.flexcheckout-form-container input[type="radio"],
.flexcheckout-payment-method-simple input[type="radio"],
.flexcheckout-payment-options input[type="radio"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    appearance: auto !important;
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
}

/* Container and Layout */
.flexcheckout-page {
    padding: 0;
    min-height: calc(100vh - 200px);
}

.flexcheckout-form-container,
.flexcheckout-thank-you-page,
.flexcheckout-page,
.flexcheckout-container {
    position: relative;
}

/* Zoekresultaten overzicht styling - only within FlexCheckout containers */
.flexcheckout-form-container .elementor-widget-container ul,
.flexcheckout-container .elementor-widget-container ul {
    margin: 0 !important;
}

.flexcheckout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flexcheckout-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Desktop Layout: Form 2/3, Summary 1/3 */
.flexcheckout-form-column {
    flex: 2;
    order: 1;
}

.flexcheckout-order-column {
    flex: 1;
    order: 2;
}

.flexcheckout-form-container {
    background: var(--flexcheckout-white);
    border: 1px solid var(--flexcheckout-border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--flexcheckout-shadow);
    margin-bottom: 30px;
}

/* Section Styling */
.flexcheckout-section {
    margin-bottom: 40px;
}

.flexcheckout-section:last-child {
    margin-bottom: 0;
}

.flexcheckout-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--flexcheckout-primary);
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--flexcheckout-border);
    font-family: "Poppins", Sans-serif;
}

.flexcheckout-section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--flexcheckout-text);
    margin: 0 0 15px 0;
    font-family: "Poppins", Sans-serif;
}

/* Grid System */
.flexcheckout-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px -10px;
}

.flexcheckout-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}

.flexcheckout-col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
}

/* Form Elements */
.flexcheckout-form-container label {
    display: block;
    font-weight: 500;
    color: var(--flexcheckout-text);
    margin-bottom: 8px;
    font-size: 14px;
    font-family: "Poppins", Sans-serif;
}

/* Uniform text styling */
.flexcheckout-form-container p,
.flexcheckout-payment-info-compact p,
.flexcheckout-privacy-text,
.flexcheckout-checkbox-text,
.flexcheckout-radio-text {
    font-size: 14px !important;
    color: var(--flexcheckout-text) !important;
    font-family: "Poppins", Sans-serif !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.flexcheckout-form-container input[type="text"],
.flexcheckout-form-container input[type="email"],
.flexcheckout-form-container input[type="tel"],
.flexcheckout-form-container input[type="date"],
.flexcheckout-form-container select,
.flexcheckout-form-container textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--flexcheckout-border);
    border-radius: var(--flexsuite-border-radius, 8px);
    font-size: 14px;
    font-family: "Poppins", Sans-serif;
    background-color: var(--flexcheckout-white);
    color: var(--flexcheckout-text);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.flexcheckout-form-container input:focus,
.flexcheckout-form-container select:focus,
.flexcheckout-form-container textarea:focus {
    outline: none;
    border-color: var(--flexcheckout-primary);
    box-shadow: 0 0 0 3px rgba(0, 114, 176, 0.1);
}

.flexcheckout-form-container select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230072B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.flexcheckout-form-container textarea {
    resize: vertical;
    min-height: 100px;
}

/* Required Field Indicator - Only within FlexCheckout containers */
.flexcheckout-form-container .required,
.flexcheckout-container .required {
    color: var(--flexcheckout-error, #dc3545);
    font-weight: bold;
}

/* Payment Options */
.flexcheckout-payment-options {
    margin-bottom: 25px;
}

.flexcheckout-radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 14px;
    font-family: "Poppins", Sans-serif;
}

.flexcheckout-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: var(--flexcheckout-primary);
}

.flexcheckout-radio-text {
    color: var(--flexcheckout-text);
    font-weight: 500;
}

/* Business Information */
.flexcheckout-business-info {
    background-color: var(--flexcheckout-background);
    border: 1px solid var(--flexcheckout-border);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

/* Terms and Conditions - REMOVED BACKGROUND */
.flexcheckout-terms {
    /* No background, no border, no padding */
}

.flexcheckout-terms p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--flexcheckout-text);
}

.flexcheckout-terms p:last-of-type {
    margin-bottom: 20px;
}

.flexcheckout-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    font-family: "Poppins", Sans-serif;
}

.flexcheckout-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    margin-top: 2px;
    accent-color: var(--flexcheckout-primary);
    flex-shrink: 0;
}

.flexcheckout-checkbox-text {
    color: var(--flexcheckout-text);
    line-height: 1.5;
}

.flexcheckout-checkbox-text a {
    color: var(--flexcheckout-primary);
    text-decoration: underline;
}

.flexcheckout-checkbox-text a:hover {
    color: var(--flexcheckout-secondary);
}

/* Submit Button */
.flexcheckout-submit-section {
    text-align: left;
    margin-top: 30px;
}

.flexcheckout-submit-btn {
    background-color: var(--flexcheckout-primary);
    color: var(--flexcheckout-white);
    border: none;
    border-radius: var(--flexsuite-border-radius, 8px);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Poppins", Sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.flexcheckout-submit-btn:hover:not(:disabled) {
    background-color: var(--flexsearch-white);
    color: var(--flexsearch-primary);
    border: 1px solid var(--flexsearch-primary);
}

.flexcheckout-submit-btn:disabled {
    background-color: var(--flexcheckout-border);
    cursor: not-allowed;
}

/* Order Summary Sidebar */
.flexcheckout-order-summary {
    background: var(--flexcheckout-white);
    border: 1px solid var(--flexcheckout-border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--flexcheckout-shadow);
    position: sticky;
    top: 20px;
}

.flexcheckout-summary-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--flexcheckout-primary);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--flexcheckout-border);
    font-family: "Poppins", Sans-serif;
}

.flexcheckout-summary-section {
    margin-bottom: 30px;
}

.flexcheckout-summary-section:last-child {
    margin-bottom: 0;
}

/* Clean section dividers */
.flexcheckout-summary-section:not(:last-child) {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--flexcheckout-border);
}

.flexcheckout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.flexcheckout-summary-row:last-child {
    margin-bottom: 0;
}

.flexcheckout-summary-label {
    font-size: 14px;
    color: var(--flexcheckout-text);
    font-weight: 500;
}

.flexcheckout-summary-value {
    font-size: 14px;
    color: var(--flexcheckout-text);
    font-weight: 600;
}

.flexcheckout-product-info {
    background-color: var(--flexcheckout-background);
    border-radius: var(--flexsuite-border-radius, 8px);
    padding: 15px;
    margin-top: 10px;
}

.flexcheckout-product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--flexcheckout-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.flexcheckout-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--flexcheckout-secondary);
}

.flexcheckout-total-row {
    font-size: 16px;
    font-weight: 700;
    padding-top: 10px;
    border-top: 1px solid var(--flexcheckout-border);
    margin-top: 10px;
}

.flexcheckout-total-row .flexcheckout-summary-label,
.flexcheckout-total-row .flexcheckout-summary-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--flexcheckout-primary);
}

/* Payment Information */
.flexcheckout-payment-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--flexcheckout-text);
    margin: 0 0 10px 0;
}

.flexcheckout-payment-description {
    font-size: 14px;
    color: var(--flexcheckout-text-muted);
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.flexcheckout-privacy-notice {
    background-color: var(--flexcheckout-background);
    border: 1px solid var(--flexcheckout-border);
    border-radius: var(--flexsuite-border-radius, 8px);
    padding: 12px;
}

.flexcheckout-privacy-notice p {
    font-size: 12px;
    color: var(--flexcheckout-text-muted);
    margin: 0;
    line-height: 1.4;
}

.flexcheckout-privacy-notice a {
    color: var(--flexcheckout-primary);
    text-decoration: underline;
}

/* FlexManager Information */
.flexcheckout-flexmanager-item {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--flexcheckout-text);
}

.flexcheckout-flexmanager-item strong {
    color: var(--flexcheckout-primary);
    font-weight: 600;
}

.flexcheckout-flexmanager-item em {
    color: var(--flexcheckout-text-muted);
    font-style: italic;
}

/* Payment Method Selection */
.flexcheckout-payment-method {
    margin-bottom: 15px;
    padding: 12px;
    background-color: var(--flexcheckout-background);
    border: 1px solid var(--flexcheckout-border);
    border-radius: var(--flexsuite-border-radius, 8px);
}

.flexcheckout-payment-method .flexcheckout-checkbox-label {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--flexcheckout-primary);
}

.flexcheckout-payment-method input[type="checkbox"] {
    opacity: 0.7;
}

/* Simple Payment Method (in form) */
.flexcheckout-payment-method-simple {
    margin-bottom: 15px;
}

.flexcheckout-payment-method-simple .flexcheckout-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-family: "Poppins", Sans-serif;
    margin-bottom: 0;
    position: relative;
}

.flexcheckout-payment-method-simple input[type="radio"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 12px !important;
    accent-color: var(--flexcheckout-primary) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 10 !important;
}

.flexcheckout-payment-method-simple .flexcheckout-radio-text {
    flex: 1;
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: var(--flexcheckout-text) !important;
    font-family: "Poppins", Sans-serif !important;
    line-height: 1.5 !important;
}

/* Payment Options */
.flexcheckout-payment-options {
    margin-bottom: 20px;
}

.flexcheckout-payment-options .flexcheckout-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-family: "Poppins", Sans-serif;
    margin-bottom: 10px;
    position: relative;
}

.flexcheckout-payment-options input[type="radio"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 12px !important;
    accent-color: var(--flexcheckout-primary) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 10 !important;
}

.flexcheckout-payment-options .flexcheckout-radio-text {
    flex: 1;
    position: relative;
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: var(--flexcheckout-text) !important;
    font-family: "Poppins", Sans-serif !important;
    line-height: 1.5 !important;
}

.flexcheckout-payment-info-compact {
    margin-bottom: 20px;
    padding: 12px;
    background-color: var(--flexcheckout-background);
    border-radius: var(--flexsuite-border-radius, 8px);
}

.flexcheckout-payment-info-compact p {
    margin: 0;
    font-size: 14px;
    color: var(--flexcheckout-text);
}

/* Simple Privacy Text */
.flexcheckout-privacy-text {
    margin-bottom: 20px !important;
    font-size: 14px;
    color: var(--flexcheckout-text);
    line-height: 1.5;
}

.flexcheckout-checkbox-label-simple {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    font-family: "Poppins", Sans-serif;
}

.flexcheckout-checkbox-label-simple input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    margin-top: 2px;
    accent-color: var(--flexcheckout-primary);
    flex-shrink: 0;
}

/* Product SKU */
.flexcheckout-product-sku {
    font-size: 12px;
    color: var(--flexcheckout-text-muted);
    margin-top: 4px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .flexcheckout-page {
        padding: 0;
    }
    
    .flexcheckout-container {
        padding: 0 15px;
    }
    
    /* Mobile Layout: Stack vertically, Summary first */
    .flexcheckout-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .flexcheckout-form-column {
        order: 2; /* Form second on mobile */
    }
    
    .flexcheckout-order-column {
        order: 1; /* Summary first on mobile */
    }
    
    .flexcheckout-form-container,
    .flexcheckout-order-summary {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .flexcheckout-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .flexcheckout-section-title {
        font-size: 20px;
    }
    
    .flexcheckout-summary-title {
        font-size: 18px;
    }
    
    .flexcheckout-order-summary {
        position: static;
    }
}

@media screen and (max-width: 480px) {
    .flexcheckout-form-container,
    .flexcheckout-order-summary {
        padding: 15px;
    }
    
    .flexcheckout-row {
        margin: 0 -5px 15px -5px;
    }
    
    .flexcheckout-col-6,
    .flexcheckout-col-12 {
        padding: 0 5px;
    }
    
    .flexcheckout-submit-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* FlexCheckout Enrollment Button (Elementor Widget) */
.flexcheckout-enroll-btn {
    background-color: var(--flexsuite-primary, var(--flexcheckout-primary, #1E55B3)) !important;
    color: var(--flexsuite-white, var(--flexcheckout-white, #ffffff)) !important;
    border: none;
    border-radius: var(--flexsuite-border-radius, 8px);
    cursor: pointer;
    font-family: "Roboto", Sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    gap: 10px;
    padding: 12px 24px;
    line-height: 1;
    fill: var(--flexsuite-white, var(--flexcheckout-white, #ffffff));
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
}

.flexcheckout-btn-text {
    display: inline-block;
}

.flexcheckout-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--flexsuite-white, var(--flexcheckout-white, #ffffff)) !important;
    opacity: 1;
    width: 16px;
    height: 16px;
}

.flexcheckout-btn-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.flexcheckout-enroll-btn:hover {
    background-color: var(--flexsuite-primary, var(--flexcheckout-primary, #1E55B3)) !important;
    color: var(--flexsuite-white, var(--flexcheckout-white, #ffffff)) !important;
    text-decoration: none;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.flexcheckout-enroll-btn:focus {
    outline: 2px solid var(--flexsuite-primary, var(--flexcheckout-primary, #1E55B3)) !important;
    outline-offset: 2px;
}

/* Button Sizes */
.flexcheckout-btn-xs {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.4;
}

.flexcheckout-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.4;
}

.flexcheckout-btn-md {
    padding: 12px 24px;
    font-size: 16px;
    line-height: 1.5;
}

.flexcheckout-btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    line-height: 1.5;
}

.flexcheckout-btn-xl {
    padding: 20px 40px;
    font-size: 20px;
    line-height: 1.6;
}

/* Alignment Classes */
.elementor-align-left .flexcheckout-button-wrapper {
    text-align: left;
}

.elementor-align-center .flexcheckout-button-wrapper {
    text-align: center;
}

.elementor-align-right .flexcheckout-button-wrapper {
    text-align: right;
}

.elementor-align-justify .flexcheckout-enroll-btn {
    width: 100%;
}

/* Thank You Page Styling */
/* Thank You Page - Email Style (matches confirmation email) */
.flexcheckout-thank-you-page-email {
    padding: 40px 20px;
    width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--flexcheckout-primary);
}

.flexcheckout-thank-you-container {
    background: #fff;
    padding: 20px;
    width: 100%;
}

.flexcheckout-thank-you-header-wrapper {
    position: relative;
    margin-bottom: 30px;
    padding: 0;
    background-color: transparent;
}

.flexcheckout-thank-you-header {
    text-align: left;
}

.flexcheckout-thank-you-title {
    font-size: 24px;
    color: var(--flexcheckout-primary);
    margin: 0;
}

.flexcheckout-thank-you-greeting {
    margin-bottom: 10px;
    color: var(--flexcheckout-primary);
}

.flexcheckout-thank-you-intro {
    margin-bottom: 25px;
    color: var(--flexcheckout-primary);
}

.flexcheckout-thank-you-section {
    margin-bottom: 25px;
}

.flexcheckout-thank-you-section-title {
    font-size: 18px;
    color: var(--flexcheckout-primary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--flexcheckout-primary);
    padding-bottom: 5px;
}

.flexcheckout-thank-you-table {
    width: 100%;
    border-collapse: collapse;
}

.flexcheckout-thank-you-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    color: var(--flexcheckout-primary);
}

.flexcheckout-thank-you-label {
    font-weight: bold;
    width: 30%;
    vertical-align: top;
    color: var(--flexcheckout-primary);
}

.flexcheckout-thank-you-section p {
    color: var(--flexcheckout-primary);
}

.flexcheckout-thank-you-footer {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.flexcheckout-thank-you-footer p {
    margin: 5px 0;
}

/* Original Thank You Page (kept for backwards compatibility) */
.flexcheckout-thank-you-page {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.flexcheckout-success-header {
    text-align: center;
    margin-bottom: 40px;
}

.flexcheckout-success-icon {
    margin-bottom: 20px;
}

.flexcheckout-success-title {
    color: var(--flexcheckout-primary) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.2 !important;
}

.flexcheckout-success-subtitle {
    color: var(--flexcheckout-text) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.flexcheckout-section-title {
    color: var(--flexcheckout-primary) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.3 !important;
}

.flexcheckout-summary-card,
.flexcheckout-info-card {
    background: var(--flexcheckout-background);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--flexcheckout-border);
}

.flexcheckout-enrollment-summary .flexcheckout-summary-section {
    margin-bottom: 25px;
}

.flexcheckout-enrollment-summary .flexcheckout-summary-section:last-child {
    margin-bottom: 0;
}

.flexcheckout-enrollment-summary .flexcheckout-summary-label {
    color: var(--flexcheckout-primary) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}

.flexcheckout-product-name {
    color: var(--flexcheckout-text) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    margin: 0 0 5px 0 !important;
    line-height: 1.4 !important;
}

.flexcheckout-detail-item {
    margin-bottom: 8px;
    color: var(--flexcheckout-text) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.flexcheckout-detail-item:last-child {
    margin-bottom: 0;
}

.flexcheckout-detail-item strong {
    color: var(--flexcheckout-primary) !important;
    font-weight: 600 !important;
}

.flexcheckout-price-details {
    border-top: 1px solid var(--flexcheckout-border);
    padding-top: 15px;
}

.flexcheckout-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--flexcheckout-text) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.flexcheckout-price-row:last-child {
    margin-bottom: 0;
}

.flexcheckout-thank-you-page .flexcheckout-total-row {
    border-top: 1px solid var(--flexcheckout-border);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 16px !important;
}

.flexcheckout-thank-you-page .flexcheckout-total-row strong {
    color: var(--flexcheckout-primary) !important;
}

.flexcheckout-next-steps {
    margin: 40px 0;
}

.flexcheckout-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.flexcheckout-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--flexcheckout-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.flexcheckout-info-content h3 {
    color: var(--flexcheckout-primary) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
}

.flexcheckout-info-content p {
    color: var(--flexcheckout-text) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.flexcheckout-actions {
    text-align: center;
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.flexcheckout-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.flexcheckout-btn-primary {
    background: var(--flexcheckout-primary);
    color: white !important;
}

.flexcheckout-btn-primary:hover {
    background: white !important;
    color: var(--flexcheckout-primary) !important;
    border-color: var(--flexcheckout-primary);
}

.flexcheckout-btn-secondary {
    background: white;
    color: var(--flexcheckout-primary) !important;
    border-color: var(--flexcheckout-primary);
}

.flexcheckout-btn-secondary:hover {
    background: var(--flexcheckout-primary) !important;
    color: white !important;
}

/* Mobile responsiveness for thank you page */
@media (max-width: 768px) {
    .flexcheckout-thank-you-page {
        padding: 20px 15px;
    }
    
    .flexcheckout-success-title {
        font-size: 24px !important;
    }
    
    .flexcheckout-thank-you-page .flexcheckout-section-title {
        font-size: 20px !important;
    }
    
    .flexcheckout-summary-card,
    .flexcheckout-info-card {
        padding: 20px;
    }
    
    .flexcheckout-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .flexcheckout-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* VAT Number Validation Styles */
.flexcheckout-vat-field {
    position: relative;
}

.flexcheckout-vat-input-group {
    display: flex;
    gap: 0;
    border: 2px solid var(--flexcheckout-border);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.flexcheckout-vat-input-group input {
    flex: 0 0 70%;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.flexcheckout-vat-input-group input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.flexcheckout-vat-check-btn {
    flex: 0 0 30%;
    border: none;
    background: var(--flexcheckout-primary);
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    margin: 0;
}

.flexcheckout-vat-check-btn:hover {
    background: var(--flexcheckout-primary);
}

.flexcheckout-vat-check-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.flexcheckout-vat-result {
    margin-top: 10px;
    padding: 12px 15px;
    border-radius: var(--flexsuite-border-radius, 8px);
    font-size: 14px;
    line-height: 1.4;
}

.flexcheckout-vat-result.success {
    background-color: var(--flexsuite-success, #4caf50);
    border: 1px solid var(--flexsuite-success, #4caf50);
    color: var(--flexcheckout-white);
}

.flexcheckout-vat-result.error {
    background-color: var(--flexsuite-error, #dc3545);
    border: 1px solid var(--flexsuite-error, #dc3545);
    color: var(--flexcheckout-white);
}

.flexcheckout-vat-result.loading {
    background-color: var(--flexsuite-warning, #ff9800);
    border: 1px solid var(--flexsuite-warning, #ff9800);
    color: var(--flexcheckout-white);
}

/* Mobile responsiveness for VAT field */
@media (max-width: 768px) {
    .flexcheckout-vat-input-group {
        flex-direction: column;
    }
    
    .flexcheckout-vat-input-group input {
        flex: 1;
        border-bottom: 1px solid var(--flexcheckout-border) !important;
    }
    
    .flexcheckout-vat-check-btn {
        flex: none;
        padding: 15px;
    }
}

/* FlexManager Validation Notification */
.flexcheckout-flexmanager-notification {
    background: var(--flexsuite-success, #4caf50);
    border: 2px solid var(--flexsuite-success, #4caf50);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    animation: flexcheckoutSlideIn 0.5s ease-out;
    position: relative;
}

.flexcheckout-notification-content {
    padding: 16px 50px 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flexcheckout-notification-text {
    color: var(--flexcheckout-white);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    flex: 1;
}

.flexcheckout-notification-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--flexcheckout-white);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: calc(var(--flexsuite-border-radius, 8px) / 2);
    transition: all 0.2s ease;
}

.flexcheckout-notification-close:hover {
    background: rgba(21, 87, 36, 0.1);
    color: var(--flexcheckout-text-muted);
}

.flexcheckout-notification-highlight {
    animation: flexcheckoutPulse 0.8s ease-in-out;
}

@keyframes flexcheckoutSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flexcheckoutPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    }
    50% {
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
        transform: scale(1.02);
    }
}

/* Mobile responsive for FlexManager notification */
@media (max-width: 768px) {
    .flexcheckout-flexmanager-notification {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }
    
    .flexcheckout-notification-content {
        padding: 14px 40px 14px 16px;
    }
    
    .flexcheckout-notification-text {
        font-size: 14px;
    }
}

/* BTW Reverse Charge Styling */
.flexcheckout-vat-reverse-charge .flexcheckout-vat-reverse-text {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
    font-style: italic;
}

.flexcheckout-vat-reverse-charge .flexcheckout-summary-value {
    color: #888;
    font-size: 14px;
}
