/* CK Modern Checkout for WooCommerce */

.ck-mcheckout {
    width: 100%;
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 100vh;
    background: #fff;
}

.ck-mcheckout__left {
    background: #fff;
    padding: 50px 7%;
    min-width: 0;
}

.ck-mcheckout__form-inner {
    max-width: 760px;
    margin: 0 auto;
}

.ck-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 45px;
}

.ck-step {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.ck-step__number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #777;
    font-size: 13px;
}

.ck-step--active {
    color: #111;
}

.ck-step--active .ck-step__number {
    background: #111;
    color: #fff;
}

.ck-step__line {
    height: 1px;
    background: #ddd;
    flex: 1;
    margin: 0 15px;
}

.ck-checkout-section-title {
    margin-bottom: 25px;
}

.ck-checkout-section-title h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 600;
    color: #111;
}

.ck-checkout-section-title p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.ck-mcheckout .woocommerce-billing-fields > h3,
.ck-mcheckout .woocommerce-shipping-fields > h3 {
    display: none;
}

.ck-mcheckout .form-row {
    margin-bottom: 16px;
}

.ck-mcheckout .form-row-first,
.ck-mcheckout .form-row-last {
    width: calc(50% - 8px);
}

.ck-mcheckout .form-row-first { float: left; }
.ck-mcheckout .form-row-last { float: right; }
.ck-mcheckout .form-row-wide { width: 100%; clear: both; }

.ck-mcheckout label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.ck-mcheckout input.input-text,
.ck-mcheckout select,
.ck-mcheckout textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: #fff;
    font-size: 14px;
    color: #111;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ck-mcheckout input.input-text:focus,
.ck-mcheckout select:focus,
.ck-mcheckout textarea:focus {
    border-color: #111;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,.04);
}

#billing_phone_field {
    position: relative;
}

#billing_phone {
    padding-left: 70px;
}

#billing_phone_field::before {
    content: "🇹🇷 +90";
    position: absolute;
    left: 14px;
    top: 35px;
    z-index: 2;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    pointer-events: none;
}

.ck-continue-button {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: opacity .2s ease, transform .2s ease;
}

.ck-continue-button:hover { opacity: .9; }
.ck-continue-button:active { transform: scale(.995); }

.ck-mcheckout .woocommerce-checkout-review-order {
    position: fixed;
    right: 0;
    top: 0;
    width: 40%;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    background: #f7f7f7;
    padding: 50px 6%;
}

.ck-order-review-heading { display: none; }

.ck-order-summary__header {
    margin-bottom: 30px;
}

.ck-order-summary__header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #111;
}

.ck-order-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.ck-order-product__image {
    position: relative;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
}

.ck-order-product__image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid #ddd;
}

.ck-order-product__quantity {
    position: absolute;
    right: -7px;
    top: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 20px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    box-sizing: border-box;
}

.ck-order-product__info { flex: 1; min-width: 0; }

.ck-order-product__name {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.ck-order-product__price {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.ck-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
}

.ck-summary-total {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.ck-summary-total .amount { font-size: 20px; }

.ck-coupon {
    margin: 15px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.ck-coupon__toggle {
    width: 100%;
    padding: 16px 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #222;
}

.ck-coupon__arrow {
    font-size: 20px;
    font-weight: 300;
}

.ck-coupon__form { padding: 0 0 15px; }

.ck-coupon__inner {
    display: flex;
    gap: 8px;
}

.ck-coupon__inner input {
    flex: 1;
    min-height: 45px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.ck-coupon__inner button {
    border: 0;
    padding: 0 18px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.ck-coupon-message {
    margin-top: 8px;
    font-size: 12px;
}

.ck-checkout-footer {
    display: flex;
    gap: 22px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ck-checkout-footer a {
    color: #777;
    font-size: 12px;
    text-decoration: none;
}

.ck-checkout-footer a:hover { color: #111; }

.ck-mcheckout .woocommerce-form-coupon-toggle {
    display: none !important;
}

.ck-mcheckout .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}

.ck-mcheckout #payment { margin-top: 30px; }

.ck-mcheckout #place_order {
    width: 100%;
    min-height: 54px;
    background: #111;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .ck-mcheckout {
        display: flex;
        flex-direction: column;
    }

    .ck-mcheckout__left {
        padding: 25px 20px;
        order: 2;
    }

    .ck-mcheckout .woocommerce-checkout-review-order {
        position: relative;
        order: 1;
        width: 100%;
        height: auto;
        padding: 25px 20px;
        overflow: visible;
    }

    .ck-stepper { margin-bottom: 30px; }
    .ck-step__line { margin: 0 8px; }

    .ck-mcheckout .form-row-first,
    .ck-mcheckout .form-row-last {
        width: 100%;
        float: none;
    }

    .ck-checkout-footer {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .ck-mcheckout__left { padding: 20px 15px; }
    .ck-mcheckout .woocommerce-checkout-review-order { padding: 20px 15px; }

    .ck-stepper { margin-bottom: 25px; }
    .ck-step__label { display: none; }
    .ck-step__line { margin: 0 10px; }

    .ck-order-summary__header h2,
    .ck-checkout-section-title h2 {
        font-size: 21px;
    }
}
