/*
 * Eduhol Mağaza — Modern sepet ödeme kartı ve PAYTR iFrame V2
 */

.edu-store-payment-card,
.edu-store-payment-card *,
.edu-store-paytr-page,
.edu-store-paytr-page *,
.edu-store-result-page,
.edu-store-result-page * {
    box-sizing: border-box;
}

.edu-store-payment-card {
    width: calc(100% - 1rem);
    margin: 0 0.5rem 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.65rem;
    background: linear-gradient(
        180deg,
        #fff 0%,
        #fffafa 100%
    );
    box-shadow: 0 8px 22px rgba(40, 25, 25, 0.08);
}

.edu-store-payment-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.edu-store-payment-total span,
.edu-store-payment-total small {
    display: block;
}

.edu-store-payment-total span {
    color: #333;
    font-size: 0.82rem;
    font-weight: 700;
}

.edu-store-payment-total small {
    margin-top: 0.12rem;
    color: #8b8b8b;
    font-size: 0.62rem;
}

.edu-store-payment-total strong {
    flex-shrink: 0;
    color: #f17565;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.edu-store-payment-consents {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    padding: 0.75rem 0.9rem;
}

.edu-store-payment-consents label {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.52rem;
    margin: 0;
    padding: 0.58rem 0.62rem;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 0.48rem;
    background-color: #fff;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.edu-store-payment-consents label:hover {
    border-color: rgba(241, 117, 101, 0.48);
    background-color: #fffaf9;
}

.edu-store-payment-consents input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0 !important;
    white-space: nowrap !important;
}

.edu-store-custom-check {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 0.02rem;
    color: transparent;
    border: 2px solid #c9c9c9;
    border-radius: 0.28rem;
    background-color: #fff;
    font-size: 0.78rem;
    transition:
        color 0.16s ease,
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}

.edu-store-consent-text {
    color: #555;
  
    line-height: 1.48;
}

.edu-store-payment-consents input:checked
    + .edu-store-custom-check {
    color: #fff;
    border-color: #f17565;
    background-color: #f17565;
}

.edu-store-payment-consents input:focus-visible
    + .edu-store-custom-check {
    box-shadow: 0 0 0 0.16rem rgba(241, 117, 101, 0.22);
}

.edu-store-payment-consents label:has(input:checked) {
    border-color: rgba(241, 117, 101, 0.5);
    background-color: #fff9f8;
}

.edu-store-payment-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0 0.9rem 0.7rem;
    padding: 0.55rem 0.6rem;
    color: #8d5c00;
    border-radius: 0.42rem;
    background-color: #fff3d6;
    font-size: 0.66rem;
    line-height: 1.42;
}

.edu-store-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    margin: 0 0.9rem 0.62rem;
    color: #f17565 !important;
    font-size: 0.69rem;
    font-weight: 700;
    text-decoration: none !important;
}

.edu-store-continue-shopping:hover {
    color: #df5f50 !important;
    text-decoration: underline !important;
}

.edu-store-continue-shopping i {
    font-size: 0.82rem;
}

.edu-store-payment-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 1.8rem);
    min-height: 54px;
    gap: 0.8rem;
    margin: 0 0.9rem;
    padding: 0 0.9rem;
    color: #fff;
    border: 1px solid #dda39b;
    border-radius: 0.5rem;
    background-color: #d7b3ae;
    box-shadow: none;
    font: inherit;
    cursor: not-allowed;
    opacity: 0.72;
    transition:
        background-color 0.18s ease,
        transform 75ms ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.edu-store-payment-button span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.edu-store-payment-button strong {
    font-size: 0.77rem;
    font-weight: 800;
}

.edu-store-payment-button.is-active {
    border-color: #e36555;
    background: linear-gradient(
        135deg,
        #f17565 0%,
        #ee6858 100%
    );
    box-shadow: 0 7px 16px rgba(241, 117, 101, 0.27);
    cursor: pointer;
    opacity: 1;
}

.edu-store-payment-button.is-active:hover {
    background: linear-gradient(
        135deg,
        #ed6c5c 0%,
        #e95f4f 100%
    );
}

.edu-store-payment-button.is-active:active {
    transform: scale(0.988);
}

.edu-store-payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.62rem 0.9rem 0.75rem;
    color: #858585;
    font-size: 0.62rem;
}

.edu-store-payment-security span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.edu-store-payment-security i {
    color: #f17565;
}

/* Eksik telefon/adres popup */
.edu-store-billing-modal[hidden] {
    display: none;
}

.edu-store-billing-modal {
    position: fixed;
    inset: 0;
    z-index: 99999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 0.75rem 1rem;
}

.edu-store-billing-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
}

.edu-store-billing-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-top: 6px solid #f17565;
    border-radius: 0.45rem;
    background-color: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.edu-store-billing-dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.edu-store-billing-dialog > header > div {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.edu-store-billing-dialog > header > div i {
    color: #f17565;
}

.edu-store-billing-dialog > header strong {
    font-size: 0.84rem;
}

.edu-store-billing-dialog > header button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #777;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.edu-store-billing-content {
    padding: 0.72rem;
}

.edu-store-billing-content > p {
    margin: 0 0 0.65rem;
    padding: 0.58rem;
    color: #666;
    border-radius: 0.42rem;
    background-color: #f2f2f2;
    font-size: 0.68rem;
    line-height: 1.45;
}

.edu-store-billing-content label {
    display: block;
    margin-top: 0.55rem;
}

.edu-store-billing-content label span {
   
   
    
    font-size: 0.99rem;
   
}

.edu-store-billing-content input,
.edu-store-billing-content textarea {
    width: 100%;
    padding: 0.55rem 0.6rem;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 0.3rem;
    outline: 0;
    background-color: #fff;
    font: inherit;
    font-size: 0.73rem;
}

.edu-store-billing-content input {
    height: 42px;
}

.edu-store-billing-content textarea {
    resize: vertical;
    line-height: 1.45;
}

.edu-store-billing-content input:focus,
.edu-store-billing-content textarea:focus {
    border-color: #f17565;
    box-shadow: 0 0 0 0.14rem rgba(241, 117, 101, 0.15);
}

.edu-store-phone-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.45rem;
}

.edu-store-phone-field select {
    width: 100%;
    height: 42px;
    padding: 0 0.45rem;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 0.3rem;
    outline: 0;
    background-color: #fff;
    font: inherit;
    font-size: 0.71rem;
}

.edu-store-phone-field select:focus {
    border-color: #f17565;
    box-shadow: 0 0 0 0.14rem rgba(241, 117, 101, 0.15);
}

.edu-store-billing-content label > small {
    display: block;
    margin-top: 0.28rem;
    color: #888;
    font-size: 0.61rem;
}

.edu-store-billing-dialog > footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.42rem;
    padding: 0.6rem 0.7rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #fafafa;
}

.edu-store-billing-dialog > footer button {
    min-height: 37px;
    padding: 0 0.7rem;
    border-radius: 0.3rem;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
}

.edu-store-billing-cancel {
    color: #666;
    border: 1px solid #d4d4d4;
    background-color: #fff;
}

.edu-store-billing-continue {
    color: #fff;
    border: 1px solid #e36555;
    background-color: #f17565;
}

/* PAYTR iframe */
.edu-store-paytr-page,
.edu-store-result-page {
    width: 100%;
    max-width: 675px;
    min-width: 0;
    padding: 0.25rem 0 1rem;
    color: #333;
    font-family: inherit;
}

.edu-store-paytr-panel {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.6rem;
    background-color: #fff;
}

.edu-store-paytr-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-top: 5px solid #f17565;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.edu-store-paytr-panel > header > div {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.edu-store-paytr-panel > header > div > i {
    color: #f17565;
    font-size: 1.2rem;
}

.edu-store-paytr-panel h1 {
    margin: 0;
    font-size: 1rem;
}

.edu-store-paytr-panel header p {
    margin: 0.15rem 0 0;
    color: #777;
    font-size: 0.68rem;
}

.edu-store-paytr-panel header > span {
    padding: 0.27rem 0.42rem;
    color: #9b6500;
    border-radius: 999px;
    background-color: #fff1ca;
    font-size: 0.62rem;
    font-weight: 800;
}

.edu-store-paytr-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    color: #666;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fafafa;
    font-size: 0.65rem;
}

.edu-store-paytr-order strong {
    color: #f17565;
    font-size: 0.82rem;
}

.edu-store-paytr-frame {
    min-height: 560px;
    padding: 0.3rem;
    background-color: #fff;
}

.edu-store-paytr-note {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0 0.65rem 0.55rem;
    padding: 0.5rem;
    color: #666;
    border-radius: 0.36rem;
    background-color: #f2f2f2;
    font-size: 0.63rem;
    line-height: 1.4;
}

.edu-store-paytr-note i {
    flex-shrink: 0;
    color: #f17565;
}

.edu-store-paytr-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.65rem 0.7rem;
    color: #f17565;
    font-size: 0.66rem;
    font-weight: 700;
    text-decoration: none !important;
}

/* Sonuç */
.edu-store-result-panel {
    width: 100%;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-top: 5px solid #f17565;
    border-radius: 0.6rem;
    background-color: #fff;
    text-align: center;
}

.edu-store-result-icon {
    font-size: 2.7rem;
}

.edu-store-result-panel.is-success .edu-store-result-icon {
    color: #2ecc71;
}

.edu-store-result-panel.is-failed .edu-store-result-icon {
    color: #ef5350;
}

.edu-store-result-panel.is-pending .edu-store-result-icon {
    color: #f5a623;
}

.edu-store-result-panel h1 {
    margin: 0.45rem 0 0;
    font-size: 1rem;
}

.edu-store-result-panel > p {
    max-width: 500px;
    margin: 0.38rem auto 0;
    color: #666;
    font-size: 0.7rem;
    line-height: 1.5;
}

.edu-store-result-order {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.edu-store-result-order span {
    padding: 0.55rem;
    color: #888;
    border-radius: 0.36rem;
    background-color: #f2f2f2;
    font-size: 0.62rem;
}

.edu-store-result-order strong {
    display: block;
    margin-top: 0.15rem;
    color: #444;
    font-size: 0.72rem;
}

.edu-store-result-actions {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.edu-store-result-actions a,
.edu-store-result-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 0.72rem;
    border-radius: 0.3rem;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.edu-store-result-actions a {
    color: #fff !important;
    border: 1px solid #e36555;
    background-color: #f17565;
}

.edu-store-result-actions button {
    color: #555;
    border: 1px solid #d3d3d3;
    background-color: #fff;
}

@media (max-width: 767px) {
    .edu-store-paytr-page,
    .edu-store-result-page {
        max-width: none;
    }

    .edu-store-paytr-panel,
    .edu-store-result-panel {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .edu-store-payment-total strong {
        font-size: 1.08rem;
    }

    .edu-store-payment-button {
        min-height: 52px;
    }

    .edu-store-phone-field {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .edu-store-billing-modal {
        align-items: stretch;
        padding: 0;
    }

    .edu-store-billing-dialog {
        max-width: none;
        min-height: 100%;
        border-right: 0;
        border-left: 0;
        border-bottom: 0;
        border-radius: 0;
    }

    .edu-store-result-order {
        grid-template-columns: 1fr;
    }

    .edu-store-result-actions {
        flex-direction: column;
    }

    .edu-store-result-actions a,
    .edu-store-result-actions button {
        width: 100%;
    }
}

/* Eduhol Mağaza PAYTR güvenli vazgeçme akışı v27 */
.edu-store-paytr-cancel-form {
    margin: 0 13px 14px;
    padding: 14px;
    border: 1px solid #f1cf70;
    border-radius: 8px;
    background: #fff8dc;
}

.edu-store-paytr-cancel-form p {
    margin: 0;
    color: #6e5a22;
    font-size: 16px;
    line-height: 1.5;
}

.edu-store-paytr-cancel-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 12px;
    padding: 0 16px;
    color: #fff;
    border: 1px solid #d7594a;
    border-radius: 8px;
    background: #f17565;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.edu-store-paytr-cancel-form button:hover {
    background: #e56555;
}

@media (max-width: 767px) {
    .edu-store-paytr-cancel-form {
        margin-right: 12px;
        margin-left: 12px;
    }

    .edu-store-paytr-cancel-form button {
        width: 100%;
    }
}
