/* Idealearning Ecommerce - Checkout */

.ilec-store.ilec-checkout {
    max-width: 1100px;
    margin: 24px auto;
}

.ilec-checkout,
.ilec-checkout * {
    box-sizing: border-box;
}

.ilec-checkout .ilec-checkout-title {
    margin: 24px 0;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--ilec-text, #1f2937);
}

.ilec-checkout .ilec-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.ilec-checkout .ilec-checkout-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.ilec-checkout .ilec-checkout-summary {
    min-width: 0;
}

.ilec-checkout .ilec-checkout-panel {
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 3px 12px rgba(31, 41, 55, 0.04);
}

.ilec-checkout .ilec-checkout-panel h3 {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #1f2937;
}

.ilec-checkout .ilec-checkout-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ilec-checkout .ilec-checkout-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.ilec-checkout .ilec-field-full {
    grid-column: 1 / -1;
}

.ilec-checkout .ilec-checkout-field label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.ilec-checkout .ilec-checkout-field input {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}

.ilec-checkout .ilec-checkout-field input:focus {
    outline: 2px solid #175b91;
    outline-offset: 2px;
}

.ilec-checkout .ilec-checkout-field input[readonly] {
    background: #f5f7fa;
    color: #475569;
}

.ilec-checkout .ilec-checkout-field small,
.ilec-checkout .ilec-payment-method small {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.ilec-checkout .ilec-payment-method {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f5f7fa;
}

.ilec-checkout .ilec-payment-method strong {
    color: #175b91;
    font-size: 18px;
}

.ilec-checkout .ilec-payment-method span {
    font-size: 15px;
    color: #1f2937;
}

.ilec-checkout .ilec-checkout-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.ilec-checkout .ilec-checkout-consent input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: #175b91;
}

.ilec-checkout .ilec-checkout-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 0 18px;
}

.ilec-checkout .ilec-checkout-product {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 20px;
    overflow-wrap: anywhere;
}

.ilec-checkout .ilec-checkout-product strong {
    font-size: 19px;
    color: #1f2937;
}

.ilec-checkout .ilec-checkout-product span {
    font-size: 15px;
    color: #475569;
}

.ilec-checkout .ilec-checkout-product small {
    font-size: 13px;
    color: #64748b;
}

.ilec-checkout .ilec-checkout-line,
.ilec-checkout .ilec-checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #dce3eb;
}

.ilec-checkout .ilec-checkout-line {
    font-size: 15px;
    color: #475569;
}

.ilec-checkout .ilec-checkout-total {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.ilec-checkout .ilec-checkout-total strong {
    font-size: 28px;
    line-height: 1.3;
    color: #175b91;
    white-space: nowrap;
}

.ilec-checkout .ilec-buy-button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.ilec-checkout .ilec-checkout-summary .ilec-purchase-note {
    display: block;
    margin-top: 12px;
    text-align: center;
}

@media (max-width: 900px) {

    .ilec-checkout .ilec-checkout-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

}

@media (max-width: 640px) {

    .ilec-store.ilec-checkout {
        margin: 16px auto;
    }

    .ilec-checkout .ilec-checkout-title {
        font-size: 23px;
        margin: 20px 0;
    }

    .ilec-checkout .ilec-checkout-panel {
        padding: 18px;
    }

    .ilec-checkout .ilec-checkout-panel h3 {
        font-size: 19px;
    }

    .ilec-checkout .ilec-checkout-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .ilec-checkout .ilec-checkout-total strong {
        font-size: 25px;
    }

}
