/*!
 * DataFirefly - Final Sales Badge
 * Frontend stylesheet
 */

.dffs-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
}

/* Position on product card miniatures */
.product-miniature .dffs-badge,
.products .dffs-badge {
    margin-top: 4px;
}

/* Product page positioning */
.product-prices .dffs-badge,
.product-information .dffs-badge {
    margin-left: 8px;
}

/* Notice block (product page, cart, order) */
.dffs-notice,
.dffs-cart-notice,
.dffs-order-notice {
    border-left: 4px solid;
    border-left-color: inherit;
    padding: 14px 16px;
    margin: 16px 0;
    border-radius: 4px;
    background-color: #fff8e6;
    border-color: #f0ad4e;
    color: #6b4f0c;
}

.dffs-notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.dffs-notice-title {
    font-size: 1rem;
    color: inherit;
}

.dffs-notice-body p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.dffs-product-list {
    margin: 6px 0 0 18px;
    padding: 0;
    font-size: 0.9rem;
}

.dffs-product-list li {
    margin: 2px 0;
}

.dffs-accept-wrapper {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e0a800;
    border-radius: 3px;
}

.dffs-accept-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.dffs-accept-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===== Dual pricing cards (v1.1) ===== */
.dffs-dual-pricing {
    margin: 16px 0;
    padding: 0;
}

.dffs-dual-heading {
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    font-size: 0.95rem;
}

.dffs-dual-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #fff;
}

.dffs-dual-card:hover {
    border-color: #c0c0c0;
    background-color: #fafafa;
}

.dffs-dual-card.is-active {
    border-color: #2980b9;
    background-color: #f4f9fd;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.dffs-dual-card-final.is-active {
    border-color: #c0392b;
    background-color: #fef6f5;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.dffs-dual-card-normal.is-active {
    border-color: #27ae60;
    background-color: #f4faf6;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.dffs-dual-input {
    flex-shrink: 0;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dffs-dual-content {
    flex: 1;
    min-width: 0;
}

.dffs-dual-card-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.dffs-dual-label {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
}

.dffs-dual-price {
    margin-left: auto;
    font-weight: 700;
    font-size: 1.15rem;
}

.dffs-dual-price-final {
    color: #c0392b;
}

.dffs-dual-price-normal {
    color: #222;
}

.dffs-dual-price-old {
    margin-left: auto;
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
}

.dffs-dual-price-old + .dffs-dual-price-normal {
    margin-left: 8px;
}

.dffs-dual-card-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: #555;
}

.dffs-dual-hint-warning {
    color: #b9521a;
}

.dffs-dual-hint-ok {
    color: #1e7e44;
}

.dffs-dual-savings {
    color: #27ae60;
    font-weight: 500;
}

.dffs-dual-notice {
    margin-top: 6px;
    padding: 10px 12px;
    background-color: #fff8e6;
    border-left: 3px solid #f0ad4e;
    border-radius: 3px;
    color: #6b4f0c;
    font-style: italic;
    line-height: 1.4;
}

.dffs-dual-status {
    min-height: 18px;
    font-size: 0.8rem;
    color: #777;
    margin-top: 4px;
}

.dffs-dual-status.is-saving { color: #2980b9; }
.dffs-dual-status.is-error { color: #c0392b; }
.dffs-dual-status.is-saved { color: #27ae60; }

/* ===== Badge with price (v1.3.1) ===== */
.dffs-badge-with-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 8px;
}

.dffs-badge-price {
    background: rgba(255, 255, 255, 0.22);
    padding: 1px 7px;
    border-radius: 3px;
    font-weight: 800;
    white-space: nowrap;
}
