@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --c2c-primary: #7c4dff;
    --c2c-primary-dark: #651fff;
    --c2c-acc: #00d2ff;
    --c2c-bg-card: #ffffff;
    --c2c-text: #2d3436;
    --c2c-border: #e0e0e0;
    --c2c-radius: 16px;
    --c2c-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --c2c-mobile-bottom-offset: 0px;
}

.c2c-outer {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 500;
    margin: 40px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
}

#c2c-payment-shell,
.c2c-payment-shell,
.c2c-payment-shell-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.c2c-main-card {
    background: var(--c2c-bg-card) !important;
    border: 1px solid var(--c2c-border) !important;
    border-radius: var(--c2c-radius) !important;
    width: 100% !important;
    max-width: 850px !important;
    padding: 30px !important;
    box-shadow: var(--c2c-shadow) !important;
    margin: 0 auto !important;
    float: none !important;
    color: var(--c2c-text) !important;
    isolation: isolate;
}


.c2c-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.c2c-title-main {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c2c-text);
}

.c2c-order-id {
    font-size: 0.85rem;
    color: #95a5a6;
}

.c2c-header-badges {
    display: flex;
    gap: 10px;
}

.c2c-badge-item {
    background: #f8f9fa;
    border: 1px solid #edf0f2;
    padding: 8px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.c2c-badge-amount {
    background: #f1f0ff;
    border-color: #e0dbff;
}

.c2c-badge-val {
    font-weight: 700;
    font-family: inherit;
}

.btn-copy-icon {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%237c4dff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>') no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-copy-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.btn-copy-icon.copied {
    transform: scale(1.3);
    opacity: 1;
    filter: hue-rotate(90deg);
}


.c2c-notice-box {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.c2c-notice-box.info {
    background: #eef2ff;
    border-right: 4px solid var(--c2c-primary);
}

.c2c-notice-box.error {
    background: #fff5f5;
    border-right: 4px solid #ff4d4d;
}

.c2c-notice-box.text {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    color: #7f8c8d;
}

.c2c-accounts-grid {
    display: block !important;
    margin: 10px 0 30px !important;
    padding-top: 12px !important;
}

.c2c-methods-grid {
    display: none !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.c2c-method-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #ece8ff;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all .2s ease;
}

.c2c-method-card:hover,
.c2c-method-card.is-active {
    border-color: #7c4dff;
    box-shadow: 0 10px 24px rgba(124, 77, 255, .1);
    background: #fbf9ff;
}

.c2c-method-card input[type="radio"] {
    margin: 0;
    align-self: flex-start;
}

.c2c-method-card strong {
    color: #2d3436;
    font-size: 1rem;
}

.c2c-method-card small {
    color: #64748b;
    line-height: 1.8;
}

.is-hidden {
    display: none !important;
}

.c2c-accounts-grid h4 {
    display: block !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    line-height: 1.7 !important;
    font-size: 1.05rem;
    color: #34495e;
}

.c2c-acc-bank {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--c2c-primary);
    margin-bottom: 5px;
}

.c2c-acc-name {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 16px;
}

.c2c-acc-numbers {
    margin-top: 12px;
}

.c2c-num-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #ece4ff;
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: none;
}

.c2c-num-val {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.btn-copy-sm {
    background: transparent;
    border: none;
    color: var(--c2c-primary);
    font-size: 0.76rem;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    transition: all 0.2s;
}

.btn-copy-sm:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.btn-copy-sm.copied {
    color: #27ae60 !important;
    transform: scale(1.05);
}


.c2c-form-section-title {
    text-align: center;
    font-weight: 700;
    color: #34495e;
    margin: 30px 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.c2c-form-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--c2c-primary);
    border-radius: 2px;
}

.c2c-form-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.c2c-form-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(50% - 15px);
}

.c2c-form-field.full {
    flex: 1 1 100%;
}

.c2c-form-split {
    display: flex;
    gap: 15px;
    width: 100%;
}

.c2c-form-field label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #576574;
}

.c2c-form-field label .req {
    color: #eb4d4b;
    margin-right: 3px;
}

.c2c-form-field input,
.c2c-form-field textarea,
.c2c-form-field select {
    border: 1.5px solid #eceff1;
    border-radius: 10px;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    box-shadow: none;
    transition: all 0.25s;
}

.c2c-form-field input:not(.c2c-jalali-date):focus,
.c2c-form-field textarea:focus,
.c2c-form-field select:focus {
    outline: none;
    border-color: var(--c2c-primary);
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.08);
    background: #ffffff;
}

.c2c-form-field .c2c-jalali-date {
    cursor: pointer;
    background: #ffffff;
}

.c2c-form-field .c2c-time-input {
    background: #ffffff;
}

.c2c-form-field .c2c-time-input.c2c-time-auto {
    font-weight: 700;
}

.c2c-form-field .c2c-amount-paid[readonly] {
    background: #ffffff;
    color: #2d3436;
    font-weight: 700;
    cursor: default;
}

.c2c-field-help {
    display: block;
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 0.83rem;
    line-height: 1.7;
}

.c2c-jdp {
    position: absolute;
    width: min(340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #ece8ff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(42, 16, 94, 0.16);
    padding: 12px;
    z-index: 99999;
    direction: rtl;
    overflow: hidden;
}

/* Isolate datepicker internals from theme button/input overrides */
.c2c-jdp * {
    box-sizing: border-box;
}

.c2c-jdp button,
.c2c-jdp select {
    float: none !important;
    margin: 0 !important;
    font-family: inherit;
    line-height: 1.2;
}

.c2c-jdp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.c2c-jdp-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.c2c-jdp-title select {
    border: 1px solid #e2dafd;
    background: #fff;
    border-radius: 8px;
    color: #2a1f4d;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 6px;
    font-family: inherit;
}

.c2c-jdp-nav {
    border: 1px solid #e2dafd;
    background: #f7f4ff;
    color: #5a2cd4;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
}

.c2c-jdp-nav:hover {
    background: #efe9ff;
}

.c2c-jdp-week,
.c2c-jdp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    align-items: stretch;
}

.c2c-jdp-week span {
    font-size: 11px;
    color: #7a7394;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
}

.c2c-jdp-day {
    border: 1px solid #eee8ff;
    background: #fff;
    height: 36px;
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    cursor: pointer;
    color: #2d3436;
    font-size: 13px;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.c2c-jdp-day:hover {
    border-color: #c9bbff;
    background: #f7f2ff;
}

.c2c-jdp-day.is-today {
    border-color: #a58fff;
    color: #5a2cd4;
    font-weight: 700;
}

.c2c-jdp-day.is-selected {
    background: linear-gradient(135deg, #7c4dff, #5f2eea);
    border-color: #7c4dff;
    color: #fff;
    font-weight: 700;
}

.c2c-jdp-day.is-empty {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.c2c-jdp-foot {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.c2c-jdp-today {
    border: 1px solid #d6c9ff;
    background: #f7f2ff;
    color: #5a2cd4;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.c2c-jdp-today:hover {
    background: #eee6ff;
}

.c2c-jdp.is-mobile {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--c2c-mobile-bottom-offset)) !important;
    transform: none !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(420px, calc(100vh - 24px)) !important;
    overflow: auto !important;
    padding: 10px !important;
    border-radius: 12px !important;
    overscroll-behavior: contain;
}

@media (max-width: 768px) {
    .c2c-jdp {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        padding: 10px;
        border-radius: 12px;
    }

    .c2c-jdp-day {
        height: 36px;
        min-height: 36px;
        font-size: 13px;
    }

    .c2c-jdp-nav {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .c2c-jdp-title select {
        font-size: 13px;
        padding: 5px 7px;
    }

    .c2c-jdp-week,
    .c2c-jdp-days {
        gap: 4px;
    }
}


.c2c-upload-zone {
    position: relative;
    cursor: pointer;
}

.c2c-upload-zone input {
    position: absolute !important;
    opacity: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
    z-index: 2 !important;
    top: 0 !important;
    left: 0 !important;
}

.c2c-upload-ui {
    border: 2px dashed #d1d8dd;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fbfbfc;
    transition: all 0.2s;
}

.c2c-upload-zone:hover .c2c-upload-ui {
    background: #f0f7ff;
    border-color: var(--c2c-primary);
}

.c2c-upload-zone:focus-within .c2c-upload-ui {
    background: #f0f7ff;
    border-color: var(--c2c-primary);
}

.c2c-upload-zone.is-selected .c2c-upload-ui {
    background: #f0fff4;
    border-color: #27ae60;
}

.c2c-upload-icon {
    font-size: 2rem;
    color: var(--c2c-primary);
    margin-bottom: 10px;
}

.c2c-upload-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: #34495e;
    margin-bottom: 5px;
}

.c2c-upload-ui small {
    color: #95a5a6;
}


.c2c-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
    color: #fff;
    border: none;
    padding: 16px 20px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.3);
}

.c2c-btn-submit:hover {
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
}


.c2c-locked-banner {
    background: #f0f4f8;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.c2c-status-indicator {
    width: 50px;
    height: 50px;
    background: #2ecc71;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.c2c-locked-info strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.c2c-locked-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}


@media (max-width: 650px) {
    .c2c-header-compact {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    .c2c-header-badges {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .c2c-badge-item {
        width: 100%;
        justify-content: space-between;
    }

    .c2c-form-split {
        flex-direction: column;
        gap: 0;
    }

    .c2c-form-field {
        margin-bottom: 15px;
    }

    .c2c-main-card {
        padding: 15px;
        margin: 10px;
        border-radius: 12px;
    }

    .c2c-btn-submit {
        position: sticky;
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--c2c-mobile-bottom-offset));
        z-index: 50;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

.c2c-copied-msg {
    position: absolute;
    background: #2d3436;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.c2c-outer,
.c2c-main-card,
.c2c-main-card * {
    box-sizing: border-box;
}

.c2c-main-card {
    width: min(100%, 850px) !important;
}

/* Keep payment page surface consistent across themes */
body.c2c-payment-page,
html.c2c-payment-page body {
    background: #ffffff !important;
}

body.c2c-payment-page #page,
body.c2c-payment-page #content,
body.c2c-payment-page #primary,
body.c2c-payment-page .site,
body.c2c-payment-page .site-main,
body.c2c-payment-page .content-area,
body.c2c-payment-page .entry-content,
body.c2c-payment-page .woocommerce,
body.c2c-payment-page .woocommerce-order,
body.c2c-payment-page .woocommerce-order-pay {
    background: transparent !important;
}

/* Theme hardening: keep C2C payment UI consistent across themes/plugins */
body.c2c-payment-page .woocommerce,
body.c2c-payment-page .woocommerce-order,
body.c2c-payment-page .woocommerce-order-pay {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.c2c-payment-page #c2c-payment-shell,
body.c2c-payment-page #c2c-payment-shell *,
body.c2c-payment-page #c2c-payment-shell *::before,
body.c2c-payment-page #c2c-payment-shell *::after {
    box-sizing: border-box !important;
}

body.c2c-payment-page #c2c-payment-shell {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

body.c2c-payment-page #c2c-payment-shell .c2c-payment-shell-inner {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

body.c2c-payment-page #c2c-payment-shell .c2c-main-form,
body.c2c-payment-page #c2c-payment-shell .c2c-main-form .form-row,
body.c2c-payment-page #c2c-payment-shell .c2c-main-form .woocommerce-input-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
}

body.c2c-payment-page #c2c-payment-shell #payment,
body.c2c-payment-page #c2c-payment-shell form,
body.c2c-payment-page #c2c-payment-shell fieldset,
body.c2c-payment-page #c2c-payment-shell label,
body.c2c-payment-page #c2c-payment-shell input,
body.c2c-payment-page #c2c-payment-shell textarea,
body.c2c-payment-page #c2c-payment-shell select {
    float: none !important;
    margin: 0 !important;
    max-width: 100% !important;
    text-shadow: none !important;
    transform: none;
}

body.c2c-payment-page .c2c-outer,
body.c2c-payment-page .c2c-main-card,
body.c2c-payment-page .c2c-main-card * {
    font-family: 'Vazirmatn', sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

body.c2c-payment-page .c2c-main-card input,
body.c2c-payment-page .c2c-main-card textarea,
body.c2c-payment-page .c2c-main-card select {
    font: inherit !important;
    color: inherit !important;
    background-image: none !important;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 10px;
    max-width: 100% !important;
    min-height: 0 !important;
    line-height: 1.35 !important;
    box-shadow: none;
}

body.c2c-payment-page .c2c-main-card .c2c-btn-submit,
body.c2c-payment-page .c2c-main-card .btn-copy-sm,
body.c2c-payment-page .c2c-main-card .btn-copy-icon,
body.c2c-payment-page .c2c-main-card .c2c-jdp-day,
body.c2c-payment-page .c2c-main-card .c2c-jdp-nav,
body.c2c-payment-page .c2c-main-card .c2c-jdp-today {
    cursor: pointer;
}

body.c2c-payment-page .c2c-main-card .c2c-btn-submit {
    color: #fff !important;
    display: block !important;
    text-decoration: none !important;
}

body.c2c-payment-page .c2c-main-card .btn-copy-sm,
body.c2c-payment-page .c2c-main-card .btn-copy-icon {
    color: var(--c2c-primary) !important;
    background-color: transparent !important;
}

body.c2c-payment-page .c2c-main-card p,
body.c2c-payment-page .c2c-main-card ul,
body.c2c-payment-page .c2c-main-card ol {
    margin-block: 0;
}

body.c2c-payment-page .c2c-main-card ul,
body.c2c-payment-page .c2c-main-card ol {
    padding: 0 !important;
    list-style: none !important;
}

body.c2c-payment-page .c2c-main-card h1,
body.c2c-payment-page .c2c-main-card h2,
body.c2c-payment-page .c2c-main-card h3,
body.c2c-payment-page .c2c-main-card h4,
body.c2c-payment-page .c2c-main-card h5,
body.c2c-payment-page .c2c-main-card h6 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    color: inherit !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

.c2c-form-field input,
.c2c-form-field textarea,
.c2c-upload-ui,
.c2c-btn-submit {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .c2c-main-card {
        padding: 24px !important;
        margin: 0 10px !important;
    }
}

@media (max-width: 768px) {
    .c2c-outer {
        margin: 20px auto !important;
        padding-left: 8px;
        padding-right: 8px;
    }

    .c2c-main-card {
        padding: 18px !important;
        border-radius: 12px !important;
    }

    .c2c-header-badges {
        width: 100%;
        flex-wrap: wrap;
    }

    .c2c-badge-item {
        flex: 1 1 calc(50% - 8px);
        min-width: 220px;
    }

    .c2c-form-rows,
    .c2c-form-split {
        gap: 12px;
    }

    .c2c-upload-ui {
        padding: 20px 14px;
    }
}

@media (max-width: 520px) {
    .c2c-main-card {
        padding: 14px !important;
        margin: 0 !important;
    }

    .c2c-header-compact {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .c2c-title-main {
        font-size: 1.18rem;
    }

    .c2c-order-id {
        font-size: 0.8rem;
    }

    .c2c-badge-item {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .c2c-num-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .c2c-form-field input,
    .c2c-form-field textarea {
        padding: 11px 12px;
        font-size: 16px;
    }

    .c2c-btn-submit {
        font-size: 1rem;
        padding: 14px 14px;
        border-radius: 10px;
        position: sticky;
        bottom: calc(max(8px, env(safe-area-inset-bottom)) + var(--c2c-mobile-bottom-offset));
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .c2c-main-card {
        max-height: calc(100vh - 16px);
        overflow: auto;
    }
}

/* Late hardening for the Jalali datepicker because it is appended to body. */
body.c2c-payment-page .c2c-jdp.c2c-jdp {
    position: absolute !important;
    width: min(340px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    background: #ffffff !important;
    border: 1px solid #ece8ff !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 40px rgba(42, 16, 94, 0.16) !important;
    padding: 12px !important;
    z-index: 99999 !important;
    direction: rtl !important;
    overflow: hidden !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

body.c2c-payment-page .c2c-jdp.c2c-jdp *,
body.c2c-payment-page .c2c-jdp.c2c-jdp button,
body.c2c-payment-page .c2c-jdp.c2c-jdp select {
    box-sizing: border-box !important;
    float: none !important;
    font-family: 'Vazirmatn', sans-serif !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-title {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-title select {
    display: inline-block !important;
    width: auto !important;
    min-width: 72px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    border: 1px solid #e2dafd !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    color: #2a1f4d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-nav {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e2dafd !important;
    background: #f7f4ff !important;
    color: #5a2cd4 !important;
    border-radius: 9px !important;
    font-size: 16px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-week,
body.c2c-payment-page .c2c-jdp .c2c-jdp-days {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: stretch !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-week span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 22px !important;
    color: #7a7394 !important;
    font-size: 11px !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-day {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #eee8ff !important;
    background: #ffffff !important;
    color: #2d3436 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-day:hover {
    border-color: #c9bbff !important;
    background: #f7f2ff !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-day.is-selected {
    background: linear-gradient(135deg, #7c4dff, #5f2eea) !important;
    border-color: #7c4dff !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-day.is-empty {
    border-color: transparent !important;
    background: transparent !important;
    cursor: default !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-foot {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 8px !important;
}

body.c2c-payment-page .c2c-jdp .c2c-jdp-today {
    margin: 0 !important;
    padding: 4px 10px !important;
    border: 1px solid #d6c9ff !important;
    background: #f7f2ff !important;
    color: #5a2cd4 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

@media (max-width: 640px) {
    body.c2c-payment-page .c2c-jdp.c2c-jdp {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: min(320px, calc(100vw - 32px)) !important;
        max-width: min(320px, calc(100vw - 32px)) !important;
        padding: 8px !important;
        border-radius: 12px !important;
    }

    body.c2c-payment-page .c2c-jdp .c2c-jdp-head {
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    body.c2c-payment-page .c2c-jdp .c2c-jdp-title {
        gap: 4px !important;
    }

    body.c2c-payment-page .c2c-jdp .c2c-jdp-title select {
        font-size: 11px !important;
        padding: 4px 5px !important;
    }

    body.c2c-payment-page .c2c-jdp .c2c-jdp-nav {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        flex: 0 0 26px !important;
        font-size: 14px !important;
    }

    body.c2c-payment-page .c2c-jdp .c2c-jdp-week,
    body.c2c-payment-page .c2c-jdp .c2c-jdp-days {
        gap: 3px !important;
    }

    body.c2c-payment-page .c2c-jdp .c2c-jdp-week span {
        min-height: 18px !important;
        font-size: 10px !important;
    }

    body.c2c-payment-page .c2c-jdp .c2c-jdp-day {
        height: 30px !important;
        min-height: 30px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
    }

    body.c2c-payment-page .c2c-jdp .c2c-jdp-foot {
        margin-top: 6px !important;
    }

    body.c2c-payment-page .c2c-jdp .c2c-jdp-today {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
}

body.c2c-payment-page #c2c-payment-shell .c2c-payment-shell-inner{display:flex!important;justify-content:center!important;width:100%!important}body.c2c-payment-page #c2c-payment-shell{display:block!important;width:100%!important;margin:0 auto!important}body.c2c-payment-page .woocommerce-order-pay{display:block!important;width:100%!important}


/* ===================================================================
 * Account Box & Switcher — Premium Payment Gateway UI
 * =================================================================== */
.c2c-account-box {
  display: block;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 28px;
  padding: 0;
}

.c2c-account-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 6px;
  background: #f4f0ff;
  border: 1px solid #e8e0ff;
  border-radius: 14px;
}

.c2c-account-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #5b4a8a;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c2c-account-chip:hover {
  background: rgba(124, 77, 255, 0.06);
  border-color: #d4c4ff;
}

.c2c-account-chip.is-active {
  background: #fff;
  border-color: #7c4dff;
  color: #7c4dff;
  box-shadow: 0 4px 12px rgba(124, 77, 255, 0.12);
}

.c2c-chip-bank {
  font-weight: 700;
  font-size: 0.85rem;
}

.c2c-chip-name {
  font-size: 0.72rem;
  opacity: 0.7;
}

.c2c-account-details {
  display: block;
  padding: 22px 20px;
  background: linear-gradient(180deg, #fdfbff 0%, #f8f4ff 100%);
  border: 1.5px solid #b79bff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(124, 77, 255, 0.12);
  transition: all 0.25s ease;
}

.c2c-account-details .c2c-acc-bank {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c2c-primary);
  margin-bottom: 4px;
}

.c2c-account-details .c2c-acc-name {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 14px;
}

.c2c-account-details .c2c-acc-numbers {
  display: grid;
  gap: 10px;
}

.c2c-account-details .c2c-num-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ece4ff;
  border-radius: 12px;
  margin: 0;
}

.c2c-num-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b7ab8;
  white-space: nowrap;
}

.c2c-account-details .c2c-num-val {
  font-family: 'Vazirmatn', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #2d3436;
  direction: ltr;
  text-align: left;
  word-break: break-all;
}

.c2c-account-details .btn-copy-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid #e0dbff;
  border-radius: 8px;
  background: #fff;
  color: var(--c2c-primary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.c2c-account-details .btn-copy-sm:hover {
  background: #f4f0ff;
  border-color: #7c4dff;
}

.c2c-account-details .btn-copy-sm.copied {
  background: #ecfdf5;
  border-color: #27ae60;
  color: #27ae60;
}

@media (max-width: 520px) {
  .c2c-account-box {
    max-width: 100%;
  }

  .c2c-account-switcher {
    gap: 6px;
    padding: 5px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .c2c-account-chip {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .c2c-account-details {
    padding: 16px 14px;
  }

  .c2c-account-details .c2c-num-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .c2c-num-label {
    grid-column: 1 / -1;
    margin-bottom: -4px;
  }
}
