/* Nette integration for html/pokladna.html and html/pokladna2.html.
 * The bundled co-* styles remain the visual source of truth. */
.site-checkout-page {
    background: #fff;
}

.site-checkout-page .site-checkout-order-form .is-invalid {
    border-color: #dc2626 !important;
    outline: 2px solid rgba(220, 38, 38, .16);
    outline-offset: 2px;
}

.site-checkout-page .site-page-hero {
    padding: 62px 25px 0 80px;
}

.site-checkout-page .site-page-hero .cart-hero-wrapper {
    max-width: 1750px;
}

.site-checkout-page .site-page-hero .cart-hero-gradient {
    width: 1744px;
    max-width: 100%;
    height: 260px;
    min-height: 260px;
    margin-bottom: 80px;
    padding: 40px;
}

.site-checkout-page .site-page-hero .cart-hero-title {
    margin-left: 50px;
}

.site-checkout-page .co-checkout-section {
    width: 100%;
    max-width: 1520px;
    margin-inline: auto;
    padding: 0 80px 32px 8px;
}

.site-checkout-page .co-checkout-container {
    display: flex;
    max-width: none;
    flex-direction: column;
}

.site-checkout-page .co-progress-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.site-checkout-page .co-progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-checkout-page .co-step-divider {
    width: 386px;
    height: 2px;
    background: #e8e8e8;
}

.site-checkout-page .co-progress-step .co-step-number {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

.site-checkout-page .co-progress-step.co-active .co-step-number {
    background: #d4edff;
    color: #0069b2;
}

.site-checkout-page .co-progress-step.co-completed .co-step-number {
    background: #28a6ff;
    color: #fff;
}

.site-checkout-page .co-progress-step .co-step-label {
    color: #a4a4a4;
    font-size: 14px;
    font-weight: 500;
}

.site-checkout-page .co-progress-step.co-active .co-step-label,
.site-checkout-page .co-progress-step.co-completed .co-step-label {
    color: #1c1c1c;
}

.site-checkout-page .co-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
}

.site-checkout-auth-stack {
    display: grid;
    gap: 24px;
}

.site-checkout-register {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    gap: 32px;
    width: 100%;
    border-radius: 20px;
    background: #fff;
    padding: 40px 48px 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.site-checkout-register-form {
    display: grid;
    gap: 20px;
}

.site-checkout-register-form .site-checkout-consents {
    display: grid;
    gap: 10px;
}

.site-checkout-register-form input[type="submit"] {
    width: 100%;
}

.site-checkout-page .co-login-column.site-checkout-panel {
    display: flex;
    width: 100%;
    max-width: none;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    padding: 40px 48px 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.site-checkout-page .co-login-content {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 32px;
}

.site-checkout-page .co-login-text {
    width: 360px;
    flex: 0 0 360px;
}

.site-checkout-page .co-login-title {
    margin: 0 0 16px;
    color: #1c1c1c;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.5px;
}

.site-checkout-page .co-login-subtitle,
.site-checkout-page .co-register-link {
    color: #4d4d4d;
    font-size: 14px;
    line-height: 1.6;
}

.site-checkout-page .co-login-subtitle {
    margin: 0 0 8px;
}

.site-checkout-page .co-register-link {
    margin: 0;
}

.site-checkout-page .co-register-link-text,
.site-checkout-page .co-forgot-password,
.site-checkout-page .co-terms-link {
    color: #0069b2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-checkout-page form.site-checkout-login-form {
    flex: 1 1 358px;
}

.site-checkout-page .co-login-form {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 20px;
}

.site-checkout-page .co-form-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.site-checkout-page .co-form-label {
    margin: 0;
    color: #1c1c1c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.site-checkout-page form.site-checkout-login-form input.co-form-input {
    width: 100%;
    max-width: 358px;
    height: 40px;
    min-height: 40px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}

.site-checkout-page .co-forgot-password {
    display: block;
    width: 100%;
    max-width: 358px;
    margin-top: 4px;
    font-size: 14px;
    text-align: right;
}

.site-checkout-page form.site-checkout-login-form input.co-btn-submit {
    width: 100%;
    max-width: 358px;
    height: 45px;
    min-height: 45px;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    background: #d4edff;
    color: #0069b2;
    font-size: 16px;
    font-weight: 500;
}

.site-checkout-page .co-form-divider {
    width: 1px;
    height: 230px;
    flex: 0 0 1px;
    margin: 25px 20px;
    background: #d2d2d2;
}

.site-checkout-page .co-social-column {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
    margin-block: auto;
}

.site-checkout-page .co-social-btn {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d4edff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.site-checkout-page .co-social-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}


.site-checkout-page .site-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.site-checkout-page .site-form-full {
    grid-column: 1 / -1;
}

.site-checkout-page form.site-checkout-order-form input.co-form-input,
.site-checkout-page form.site-checkout-order-form select.co-form-input {
    width: 100%;
    max-width: none;
    height: 40px;
    min-height: 40px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
    font-size: 14px;
}

.site-customer-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.site-customer-type-option {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    margin: 0;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 8px 10px;
    color: #4d4d4d;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}


.site-customer-type-option:has(.site-customer-type-radio:checked) {
    border-color: #28a6ff;
    background: #f3faff;
    color: #0069b2;
}

.site-checkout-page .co-order-summary {
    position: sticky;
    top: 128px;
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.site-checkout-page .co-summary-title {
    margin: 16px 0 24px;
    color: #0069b2;
    font-size: 22px;
    font-weight: 600;
}

.site-checkout-page .co-summary-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.site-checkout-page .co-summary-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-checkout-page .co-summary-course-title {
    margin: 0;
    color: #1c1c1c;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.site-checkout-page .co-summary-instructor {
    margin: 4px 0 0;
    color: #717171;
    font-size: 14px;
}

.site-checkout-page .co-summary-price-block,
.site-checkout-page .co-summary-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.site-checkout-page .co-summary-discount-tag {
    border-radius: 4px;
    background: #ccffe7;
    padding: 2px 5px;
    color: #006636;
    font-size: 12px;
    font-weight: 600;
}

.site-checkout-page .co-summary-price,
.site-checkout-page .co-summary-price-sale {
    font-size: 16px;
    font-weight: 600;
}

.site-checkout-page .co-summary-price-sale {
    color: #cc163e;
}

.site-checkout-page .co-summary-price-old {
    color: #999;
    font-size: 12px;
}

.site-checkout-page .co-summary-divider {
    margin: 24px 0;
    border-top: 1px solid #e5e7eb;
}

.site-checkout-page .co-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-checkout-page .co-total-label {
    color: #0069b2;
    font-size: 20px;
    font-weight: 600;
}

.site-checkout-page .co-total-price {
    color: #1c1c1c;
    font-size: 22px;
    font-weight: 600;
}

.site-checkout-page form.site-checkout-order-form input.co-summary-payment-btn {
    width: 100%;
    height: 45px;
    min-height: 45px;
    margin-top: 20px;
    border: 0;
    border-radius: 32px;
    background: #0069b2;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.site-checkout-page .co-payment-box {
    width: 1078px;
    max-width: 100%;
    border: 0;
    border-radius: 24px;
    background: #fff;
    padding: 60px 72px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.site-checkout-page .co-payment-title {
    margin: 0 0 40px;
    color: #1c1c1c;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -.5px;
}

.site-checkout-page .co-payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
    background: transparent;
    padding: 20px 0;
}

.site-checkout-page .co-payment-label {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin-left: 16px;
    cursor: pointer;
}

.site-checkout-page .co-payment-label small {
    margin-top: 4px;
    color: #717171;
    font-size: 12px;
}

.site-checkout-page .co-payment-icons-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.site-checkout-page .co-payment-icons-group img {
    width: auto;
    height: 32px;
    object-fit: contain;
}

.site-checkout-page .co-payment-divider {
    border-top: 1px solid #e8e8e8;
}

.site-checkout-billing {
    padding: 40px 0;
}

.site-checkout-section-title {
    margin: 0 0 28px;
    color: #1c1c1c;
    font-size: 24px;
    font-weight: 600;
}

.site-checkout-consents {
    display: grid;
    gap: 14px;
    padding-top: 30px;
}

.site-checkout-page .co-payment-terms.site-check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    color: #1c1c1c;
    font-size: 14px;
    line-height: 1.55;
}

.site-checkout-page .co-terms-checkbox {
    width: 16px;
    height: 16px;
    min-height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
}

.site-payment-note {
    margin: 24px 0 0;
    border-radius: 10px;
    background: #f5f9ff;
    padding: 14px 16px;
    color: #4d4d4d;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1400px) {
    .site-checkout-page .co-checkout-grid {
        grid-template-columns: 1fr;
    }

    .site-checkout-page .co-order-summary {
        position: static;
    }
}

@media (max-width: 1024px) {
    .site-checkout-page .site-page-hero {
        padding-right: 30px;
        padding-left: 30px;
    }

    .site-checkout-page .site-page-hero .cart-hero-gradient {
        height: 220px;
        min-height: 220px;
        padding: 30px;
    }

    .site-checkout-page .site-page-hero .cart-hero-title {
        margin-left: 0;
        font-size: 36px;
        text-align: center;
    }

    .site-checkout-page .co-checkout-section {
        padding-right: 20px;
        padding-left: 20px;
    }

    .site-checkout-page .co-step-divider {
        width: 200px;
    }

    .site-checkout-page .co-login-content {
        flex-direction: column;
    }

    .site-checkout-page .co-login-text {
        width: 100%;
        flex-basis: auto;
    }

    .site-checkout-page .co-form-divider {
        display: none;
    }

    .site-checkout-page .co-social-column {
        width: 100%;
        justify-content: center;
    }

    .site-checkout-page .co-payment-box {
        padding: 48px 40px;
    }
}

@media (max-width: 768px) {
    .site-checkout-page .site-page-hero {
        padding: 36px 16px 0;
    }

    .site-checkout-page .site-page-hero .cart-hero-gradient {
        height: 212px;
        min-height: 212px;
        margin-bottom: 40px;
        padding: 20px;
    }

    .site-checkout-page .co-checkout-section {
        padding: 24px 16px;
    }

    .site-checkout-page .co-progress-steps {
        justify-content: center;
        margin-bottom: 24px;
    }

    .site-checkout-page .co-step-divider {
        width: 80px;
    }

    .site-checkout-page .co-login-column.site-checkout-panel {
        padding: 28px 24px;
    }

    .site-checkout-register {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }

    .site-checkout-page .site-register-grid {
        grid-template-columns: 1fr;
    }

    .site-customer-type-options {
        grid-template-columns: 1fr;
    }

    .site-checkout-page .site-form-full {
        grid-column: auto;
    }

    .site-checkout-page .co-payment-box {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .site-checkout-page .co-payment-option {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 0;
    }

    .site-checkout-page .co-payment-title {
        margin-bottom: 24px;
        font-size: 24px;
    }
}

.site-checkout-page .site-customer-type-radio {
    appearance: none;
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    border: 2px solid #d2d2d2;
    border-radius: 50%;
    background: #fff;
    position: relative;
    cursor: pointer;
}

.site-checkout-page .site-customer-type-radio::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background: #28a6ff;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.site-checkout-page .site-customer-type-radio:checked {
    border-color: #28a6ff;
}

.site-checkout-page .site-customer-type-radio:checked::after {
    opacity: 1;
}

.site-checkout-page .site-seller-terms-card {
    margin: 28px 0 0;
    border: 1px solid #dce8f2;
    border-radius: 14px;
    background: #f5f9ff;
    padding: 22px 24px;
    color: #4d4d4d;
    font-size: 13px;
    line-height: 1.6;
}

.site-checkout-page .site-seller-terms-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    color: #1c1c1c;
    font-size: 14px;
}

.site-checkout-page .site-seller-terms-version {
    flex: 0 0 auto;
    color: #717171;
    font-size: 12px;
    font-weight: 400;
}

.site-checkout-page .site-seller-terms-content {
    max-height: 220px;
    overflow: auto;
    padding-right: 8px;
}

.site-checkout-page .seller-terms-rich > h2 {
    margin: 22px 0 9px;
    font-size: 15px;
    line-height: 1.35;
}

.site-checkout-page .seller-terms-rich > h3 {
    margin: 18px 0 8px;
    font-size: 14px;
    line-height: 1.4;
}

.site-checkout-page .seller-terms-rich > p,
.site-checkout-page .seller-terms-rich > ul,
.site-checkout-page .seller-terms-rich > ol,
.site-checkout-page .seller-terms-rich > blockquote {
    margin: 0 0 10px;
}

.site-checkout-page .seller-terms-rich li + li {
    margin-top: 6px;
}

.site-checkout-page .site-seller-terms-empty {
    color: #717171;
}

.site-checkout-page .site-seller-terms-refund,
.site-checkout-page .site-seller-terms-contact {
    margin-top: 12px;
}

.site-checkout-page .site-seller-terms-contact a {
    color: #0069b2;
    text-decoration: underline;
    text-underline-offset: 2px;
}
