/* GALLERY SOGOLI - discount code box + discount rows */

[hidden].discount-row,
.discount-applied[hidden],
.discount-msg:empty { display: none !important; }

.discount-box {
    margin: 4px 0 16px;
    padding: 14px;
    border: 1px dashed rgba(201, 104, 139, .45);
    border-radius: 18px;
    background: rgba(255, 255, 255, .55);
}

.discount-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.discount-form { display: flex; gap: 8px; }

.discount-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(160, 130, 145, .3);
    border-radius: 14px;
    background: rgba(255, 255, 255, .85);
    color: inherit;
    font: inherit;
    font-size: 14px;
    letter-spacing: .5px;
    direction: ltr;
    text-align: center;
    outline: none;
}

.discount-form input:focus {
    border-color: #d9789b;
    box-shadow: 0 0 0 3px rgba(217, 120, 155, .16);
}

.discount-form button {
    flex-shrink: 0;
    padding: 0 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e89ab5, #c9688b);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
}

.discount-form button:disabled { opacity: .6; cursor: not-allowed; }

.discount-msg {
    margin: 8px 2px 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #d64b6b;
}

.discount-msg.ok { color: #1f9d63; }

.discount-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(31, 157, 99, .12);
    color: #1f7a52;
    font-size: 13px;
    font-weight: 800;
}

.discount-applied button {
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(214, 75, 107, .12);
    color: #d64b6b;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.discount-value { color: #1f9d63 !important; }

body.dark-mode .discount-box { background: rgba(255, 255, 255, .05); border-color: rgba(232, 154, 181, .4); }
body.dark-mode .discount-form input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
body.dark-mode .discount-applied { background: rgba(31, 157, 99, .2); color: #7be0ae; }
body.dark-mode .discount-value { color: #7be0ae !important; }
