/* BlueContainer Simple Checkout - Modern Style */

/* Variables */
:root {
    --bcco-primary: #010063;
    --bcco-primary-light: #0175d7;
    --bcco-white: #ffffff;
    --bcco-bg: #ffffff;
    --bcco-card-bg: #f8f9fa;
    --bcco-gray-100: #f5f5f5;
    --bcco-gray-200: #e8e8e8;
    --bcco-gray-300: #d4d4d4;
    --bcco-gray-400: #a3a3a3;
    --bcco-gray-500: #737373;
    --bcco-gray-600: #525252;
    --bcco-gray-700: #404040;
    --bcco-gray-800: #262626;
    --bcco-gray-900: #171717;
    --bcco-success: #10b981;
    --bcco-error: #dc2626;
    --bcco-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

/* Reset & Base */
.bcco-checkout {
    font-family: var(--bcco-font);
    color: var(--bcco-gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: var(--bcco-bg);
    min-height: 100vh;
    padding: 0;
}

.bcco-checkout * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Wrapper */
.bcco-checkout .bcco-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 16px 40px;
}

/* Header */
.bcco-checkout .bcco-header {
    text-align: center;
    padding: 20px 0 28px;
}

.bcco-checkout .bcco-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bcco-gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.bcco-checkout .bcco-subtitle {
    font-size: 17px;
    color: var(--bcco-gray-500);
}

/* Content Layout */
.bcco-checkout .bcco-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Section */
.bcco-checkout .bcco-section {
    background: var(--bcco-card-bg);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 12px;
}

.bcco-checkout .bcco-section-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--bcco-gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bcco-checkout .bcco-section-title .optional {
    font-size: 14px;
    font-weight: 400;
    color: var(--bcco-gray-400);
}

/* Form */
.bcco-checkout .bcco-form-row {
    margin-bottom: 18px;
}

.bcco-checkout .bcco-form-row:last-child {
    margin-bottom: 0;
}

.bcco-checkout .bcco-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bcco-checkout .bcco-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--bcco-gray-700);
}

.bcco-checkout .bcco-label .required {
    color: var(--bcco-error);
}

.bcco-checkout .bcco-label .optional {
    font-weight: 400;
    color: var(--bcco-gray-400);
    font-size: 13px;
}

.bcco-checkout .bcco-input {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--bcco-gray-200);
    border-radius: 12px;
    font-size: 17px;
    font-family: var(--bcco-font);
    color: var(--bcco-gray-800);
    background: var(--bcco-white);
    transition: all 0.15s ease;
}

.bcco-checkout .bcco-input:focus {
    outline: none;
    border-color: var(--bcco-primary-light);
}

.bcco-checkout .bcco-input::placeholder {
    color: var(--bcco-gray-400);
}

.bcco-checkout .bcco-input.bcco-input-error {
    border-color: var(--bcco-error);
}

.bcco-checkout .bcco-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Field Info Text */
.bcco-checkout .bcco-field-info {
    font-size: 13px;
    color: var(--bcco-gray-600);
    line-height: 1.5;
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--bcco-gray-100);
    border-radius: 10px;
}

.bcco-checkout .bcco-field-error {
    font-size: 13px;
    color: var(--bcco-error);
    margin-top: 4px;
}

/* Options (Radio) */
.bcco-checkout .bcco-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bcco-checkout .bcco-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--bcco-white);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bcco-checkout .bcco-option:hover {
    background: var(--bcco-gray-100);
}

.bcco-checkout .bcco-option.selected {
    background: #f0f7ff;
    border-color: var(--bcco-primary-light);
}

.bcco-checkout .bcco-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bcco-checkout .bcco-option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--bcco-gray-300);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-top: 2px;
}

.bcco-checkout .bcco-option.selected .bcco-option-radio {
    border-color: var(--bcco-primary);
    background: var(--bcco-primary);
}

.bcco-checkout .bcco-option.selected .bcco-option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--bcco-white);
    border-radius: 50%;
}

.bcco-checkout .bcco-option-content {
    flex: 1;
}

.bcco-checkout .bcco-option-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--bcco-gray-800);
    margin-bottom: 4px;
}

.bcco-checkout .bcco-option-desc {
    font-size: 14px;
    color: var(--bcco-gray-500);
}

.bcco-checkout .bcco-option-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--bcco-primary);
    white-space: nowrap;
}

/* GDPR Checkbox */
.bcco-checkout .bcco-gdpr-section {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.bcco-checkout .bcco-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.6;
    color: var(--bcco-gray-600);
}

.bcco-checkout .bcco-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bcco-checkout .bcco-checkbox-mark {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--bcco-gray-300);
    border-radius: 6px;
    background: var(--bcco-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-top: 1px;
}

.bcco-checkout .bcco-checkbox-label input[type="checkbox"]:checked + .bcco-checkbox-mark {
    background: var(--bcco-primary);
    border-color: var(--bcco-primary);
}

.bcco-checkout .bcco-checkbox-label input[type="checkbox"]:checked + .bcco-checkbox-mark::after {
    content: '✓';
    color: var(--bcco-white);
    font-size: 14px;
    font-weight: 700;
}

.bcco-checkout .bcco-checkbox-label.bcco-checkbox-error .bcco-checkbox-mark {
    border-color: var(--bcco-error);
}

.bcco-checkout .bcco-checkbox-text {
    flex: 1;
}

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

.bcco-checkout .bcco-checkbox-text a:hover {
    color: var(--bcco-primary);
}

/* Error Message */
.bcco-checkout .bcco-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    padding: 16px 18px;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Submit Section */
.bcco-checkout .bcco-submit-section {
    text-align: center;
    padding: 0 0 20px;
}

.bcco-checkout .bcco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 20px 32px;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--bcco-font);
    cursor: pointer;
    transition: all 0.15s ease;
}

.bcco-checkout .bcco-btn-submit {
    background: var(--bcco-primary);
    color: var(--bcco-white);
}

.bcco-checkout .bcco-btn-submit:hover {
    background: var(--bcco-primary-light);
}

.bcco-checkout .bcco-btn-submit:active {
    transform: scale(0.98);
}

.bcco-checkout .bcco-btn-submit.bcco-btn-loading-state {
    opacity: 0.7;
    pointer-events: none;
}

.bcco-checkout .bcco-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--bcco-gray-500);
}

.bcco-checkout .bcco-secure-icon {
    font-size: 15px;
}

/* Summary - Mobile */
.bcco-checkout .bcco-summary-mobile {
    background: var(--bcco-card-bg);
    border-radius: 16px;
    overflow: hidden;
}

.bcco-checkout .bcco-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.bcco-checkout .bcco-summary-toggle-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--bcco-primary-light);
}

.bcco-checkout .bcco-summary-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--bcco-gray-900);
    margin-left: auto;
    margin-right: 12px;
}

.bcco-checkout .bcco-summary-chevron {
    font-size: 12px;
    color: var(--bcco-primary-light);
    transition: transform 0.2s ease;
}

.bcco-checkout .bcco-summary-chevron.rotated {
    transform: rotate(180deg);
}

.bcco-checkout .bcco-summary-content {
    padding: 0 20px 20px;
    border-top: 1px solid var(--bcco-gray-200);
}

/* Summary - Desktop */
.bcco-checkout .bcco-summary-desktop {
    display: none;
}

.bcco-checkout .bcco-summary-sticky {
    background: var(--bcco-card-bg);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.bcco-checkout .bcco-summary-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--bcco-gray-900);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bcco-gray-200);
}

/* Cart Items */
.bcco-checkout .bcco-cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--bcco-gray-200);
    position: relative;
}

.bcco-checkout .bcco-cart-item:last-of-type {
    border-bottom: none;
}

.bcco-checkout .bcco-cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bcco-white);
    flex-shrink: 0;
}

.bcco-checkout .bcco-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bcco-checkout .bcco-cart-item-details {
    flex: 1;
    min-width: 0;
}

.bcco-checkout .bcco-cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--bcco-gray-800);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Quantity Controls */
.bcco-checkout .bcco-cart-item-qty-control {
    display: inline-flex;
    align-items: center;
    background: var(--bcco-white);
    border-radius: 8px;
    border: 1px solid var(--bcco-gray-200);
    overflow: hidden;
}

.bcco-checkout .bcco-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 500;
    color: var(--bcco-gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.bcco-checkout .bcco-qty-btn:hover {
    background: var(--bcco-gray-100);
    color: var(--bcco-primary);
}

.bcco-checkout .bcco-qty-btn:active {
    background: var(--bcco-gray-200);
}

.bcco-checkout .bcco-qty-input {
    width: 44px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--bcco-gray-800);
    font-family: var(--bcco-font);
    -moz-appearance: textfield;
}

.bcco-checkout .bcco-qty-input::-webkit-outer-spin-button,
.bcco-checkout .bcco-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bcco-checkout .bcco-cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--bcco-gray-800);
    white-space: nowrap;
    text-align: right;
    min-width: 90px;
}

/* Remove Button */
.bcco-checkout .bcco-cart-item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bcco-gray-100);
    border-radius: 50%;
    font-size: 18px;
    color: var(--bcco-gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
    flex-shrink: 0;
}

.bcco-checkout .bcco-cart-item-remove:hover {
    background: #fee2e2;
    color: var(--bcco-error);
}

/* Summary Totals */
.bcco-checkout .bcco-summary-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bcco-gray-200);
}

.bcco-checkout .bcco-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
    color: var(--bcco-gray-600);
}

.bcco-checkout .bcco-summary-row.bcco-summary-total {
    padding-top: 12px;
    font-size: 18px;
    color: var(--bcco-gray-900);
}

.bcco-checkout .bcco-summary-row.bcco-summary-total strong {
    font-size: 24px;
}

/* Desktop price styling */
@media (min-width: 768px) {
    .bcco-checkout .bcco-cart-item-price {
        font-size: 18px;
        min-width: 110px;
    }

    .bcco-checkout .bcco-summary-row.bcco-summary-total strong {
        font-size: 26px;
    }
}

.bcco-checkout .bcco-cart-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 1px solid var(--bcco-gray-200);
    font-size: 17px;
    color: var(--bcco-gray-800);
}

.bcco-checkout .bcco-cart-total strong {
    font-size: 20px;
}

/* TVA Note */
.bcco-checkout .bcco-tva-note {
    font-size: 13px;
    color: var(--bcco-gray-500);
    text-align: right;
    margin-top: 6px;
}

.bcco-checkout .bcco-summary-note {
    margin-top: 20px;
    padding: 16px;
    background: var(--bcco-white);
    border-radius: 10px;
    font-size: 14px;
    color: var(--bcco-gray-500);
    line-height: 1.5;
}

/* Form Sections */
.bcco-checkout .bcco-form-section {
    flex: 1;
}

/* Empty Cart State */
.bcco-checkout .bcco-empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.bcco-checkout .bcco-empty-cart-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.bcco-checkout .bcco-empty-cart-text {
    font-size: 18px;
    color: var(--bcco-gray-600);
    margin-bottom: 20px;
}

.bcco-checkout .bcco-empty-cart-link {
    display: inline-block;
    padding: 14px 28px;
    background: var(--bcco-primary);
    color: var(--bcco-white);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

/* Responsive - Mobile First */
@media (max-width: 479px) {
    .bcco-checkout .bcco-wrapper {
        padding: 12px 12px 32px;
    }

    .bcco-checkout .bcco-header {
        padding: 16px 0 24px;
    }

    .bcco-checkout .bcco-title {
        font-size: 24px;
    }

    .bcco-checkout .bcco-subtitle {
        font-size: 15px;
    }

    .bcco-checkout .bcco-section {
        padding: 20px 16px;
        border-radius: 14px;
        margin-bottom: 10px;
    }

    .bcco-checkout .bcco-section-title {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .bcco-checkout .bcco-input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .bcco-checkout .bcco-option {
        padding: 16px;
        gap: 12px;
    }

    .bcco-checkout .bcco-option-title {
        font-size: 15px;
    }

    .bcco-checkout .bcco-option-desc {
        font-size: 13px;
    }

    .bcco-checkout .bcco-btn {
        padding: 18px 24px;
        font-size: 17px;
        border-radius: 12px;
    }

    .bcco-checkout .bcco-cart-item {
        grid-template-columns: 56px 1fr auto;
        gap: 10px;
    }

    .bcco-checkout .bcco-cart-item-image {
        width: 56px;
        height: 56px;
    }

    .bcco-checkout .bcco-cart-item-name {
        font-size: 14px;
    }

    .bcco-checkout .bcco-cart-item-price {
        min-width: 70px;
        font-size: 15px;
    }

    .bcco-checkout .bcco-cart-item-remove {
        position: absolute;
        top: 8px;
        right: -4px;
    }

    .bcco-checkout .bcco-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .bcco-checkout .bcco-qty-input {
        width: 38px;
        height: 32px;
        font-size: 15px;
    }

    .bcco-checkout .bcco-summary-mobile {
        border-radius: 14px;
    }

    .bcco-checkout .bcco-field-info {
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* Responsive - Tablet */
@media (min-width: 480px) {
    .bcco-checkout .bcco-wrapper {
        padding: 24px;
    }

    .bcco-checkout .bcco-title {
        font-size: 32px;
    }

    .bcco-checkout .bcco-form-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .bcco-checkout .bcco-form-row-2 .bcco-form-group {
        margin-bottom: 0;
    }
}

/* Responsive - Desktop */
@media (min-width: 768px) {
    .bcco-checkout .bcco-wrapper {
        padding: 32px;
    }

    .bcco-checkout .bcco-header {
        padding: 32px 0 40px;
    }

    .bcco-checkout .bcco-title {
        font-size: 36px;
    }

    .bcco-checkout .bcco-subtitle {
        font-size: 18px;
    }

    .bcco-checkout .bcco-content {
        flex-direction: row;
        gap: 32px;
        align-items: flex-start;
    }

    .bcco-checkout .bcco-form-section {
        flex: 1;
        max-width: 640px;
    }

    .bcco-checkout .bcco-summary-mobile {
        display: none;
    }

    .bcco-checkout .bcco-summary-desktop {
        display: block;
        width: 380px;
        flex-shrink: 0;
    }

    .bcco-checkout .bcco-section {
        padding: 28px;
    }

    .bcco-checkout .bcco-btn {
        width: 100%;
    }
}

/* Responsive - Large Desktop */
@media (min-width: 1024px) {
    .bcco-checkout .bcco-wrapper {
        padding: 40px;
    }

    .bcco-checkout .bcco-form-section {
        max-width: 720px;
    }

    .bcco-checkout .bcco-summary-desktop {
        width: 420px;
    }
}

/* Hide WooCommerce default elements */
.woocommerce-form-coupon-toggle,
.woocommerce-form-coupon,
.woocommerce-NoticeGroup,
.woocommerce-info,
.woocommerce-message {
    display: none !important;
}

/* Print */
@media print {
    .bcco-checkout .bcco-btn,
    .bcco-checkout .bcco-summary-mobile {
        display: none;
    }
}
