/* ==========================================================================
   WooCommerce Dropship VIP Stylesheet
   Color Palette: Primary Amber/Orange #e5983c, Dark Neutral #333333, Light Background #f9f9f9
   ========================================================================== */

:root {
    --ds-primary: #e5983c;
    --ds-primary-hover: #d4872b;
    --ds-dark: #3b3735;
    --ds-light-bg: #fcfbfa;
    --ds-border-color: #e2e2e2;
    --ds-text: #222222;
    --ds-text-muted: #666666;
    --ds-radius: 6px;
    --ds-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
}

/* Плажки "Дропшипер" та "Покупець" (Точна відповідність макету) */
.ds-section-banner-title {
    background-color: #faf8f5 !important;
    color: #2c2724 !important;
    padding: 14px 18px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.woocommerce-billing-fields__field-wrapper > .ds-section-banner-title:first-child,
.ds-section-banner-title:first-of-type {
    margin-top: 0 !important;
}

/* Інпут ціни для покупця під товаром у таблиці чекауту */
.ds-item-price-markup-wrap {
    margin-top: 6px;
    padding-top: 4px;
}

.ds-item-end-price-input {
    width: 110px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border: 1px solid var(--ds-primary) !important;
    border-radius: 4px !important;
    background-color: #fffcf5 !important;
}

/* Stepper кнопки + та - у попапі */
.dropship-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--ds-border-color);
    border-radius: var(--ds-radius);
    overflow: hidden;
    background: #fff;
}

.dropship-qty-btn {
    width: 38px;
    height: 38px;
    background: #f4f4f4;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.2s ease;
}
.dropship-qty-btn:hover {
    background: var(--ds-primary);
    color: #fff;
}

.ds-qty-input {
    border: none !important;
    text-align: center;
    font-weight: 700;
    box-shadow: none !important;
    padding: 8px !important;
    -moz-appearance: textfield;
}

/* Password eye toggle wrapper */
.dropship-password-wrapper {
    position: relative;
}

.dropship-password-wrapper input {
    padding-right: 45px !important;
}

.dropship-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.dropship-toggle-password:hover {
    opacity: 1;
}

/* Empty balance card */
.dropship-empty-balance-card {
    background-color: #fffcf5 !important;
    border-left: 4px solid var(--ds-primary) !important;
    color: #444 !important;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Reserve Button on Single Product Page */
.dropship-btn-reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #3b3735;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: var(--ds-radius);
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}
.dropship-btn-reserve:hover {
    background-color: var(--ds-primary);
}

/* Modal Popup for Product Reservation */
.dropship-reserve-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.dropship-reserve-modal-overlay.active {
    display: flex;
}

.dropship-reserve-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    font-family: var(--ds-font-family);
}

.dropship-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
}

.dropship-reserve-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.dropship-reserve-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* Registration Form */
.dropship-register-container {
    max-width: 540px;
    margin: 40px auto;
    padding: 20px;
    font-family: var(--ds-font-family);
    text-align: center;
}

.dropship-register-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.dropship-form-group {
    margin-bottom: 14px;
    text-align: left;
}

.dropship-input,
.dropship-select,
.dropship-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--ds-text);
    background-color: #fff;
    border: 1px solid var(--ds-border-color);
    border-radius: var(--ds-radius);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dropship-input:focus,
.dropship-select:focus,
.dropship-textarea:focus {
    border-color: var(--ds-primary);
    box-shadow: 0 0 0 3px rgba(229, 152, 60, 0.15);
}

.dropship-textarea {
    min-height: 90px;
    resize: vertical;
}

.dropship-btn-submit,
.dropship-btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--ds-primary);
    border: none;
    border-radius: var(--ds-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.dropship-btn-submit:hover,
.dropship-btn-primary:hover {
    background-color: var(--ds-primary-hover);
}

/* Alert Boxes */
.dropship-alert {
    padding: 12px 16px;
    border-radius: var(--ds-radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.dropship-alert-danger {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #f8c2c0;
}
.dropship-alert-success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}
.dropship-alert-warning {
    background-color: #fef7e0;
    color: #b06000;
    border: 1px solid #feefc3;
}
.dropship-alert-info {
    background-color: #e8f0fe;
    color: #1967d2;
    border: 1px solid #d2e3fc;
}

/* My Account - Deposit Tab */
.dropship-account-deposit-wrapper {
    font-family: var(--ds-font-family);
    color: var(--ds-text);
}

.dropship-account-balance-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.dropship-balance-amount {
    font-size: 28px;
    color: #111;
    font-weight: 800;
}

.dropship-deposit-info-box {
    background-color: #fff;
    border-left: 4px solid var(--ds-primary);
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dropship-deposit-info-box p {
    margin: 0 0 8px 0;
}

.dropship-receipt-upload-card,
.dropship-transactions-card {
    background-color: #fff;
    border: 1px solid var(--ds-border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.dropship-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.dropship-table th,
.dropship-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}

.dropship-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

/* Блок з двома цінами (Звичайна / VIP) на сторінці товару */
.ds-dual-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
}

.ds-dual-price .ds-price-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 15px;
}

.ds-dual-price .ds-price-normal {
    color: var(--ds-text-muted);
}

.ds-dual-price .ds-price-normal .ds-price-value {
    text-decoration: line-through;
    font-weight: 500;
}

.ds-dual-price .ds-price-vip {
    color: var(--ds-primary);
    font-weight: 700;
}

.ds-dual-price .ds-price-vip .ds-price-value {
    font-size: 1.15em;
}

.ds-dual-price .ds-price-label {
    font-weight: 600;
}
