/* ===================================================
   Daily Visit Points — フロントエンドスタイル
   =================================================== */

/* ---------- トースト通知 ---------- */
.dvp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    border-left: 4px solid #f0a500;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.28);
    min-width: 260px;
    max-width: 380px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s ease, transform .35s ease;
    font-family: inherit;
    background: #1a1a2e;
}
.dvp-toast--win  { background: #1a1a2e; border-left-color: #f0a500; }
.dvp-toast--lose { background: #2d2d2d; border-left-color: #888; }
.dvp-toast--show {
    opacity: 1;
    transform: translateY(0);
}
.dvp-toast-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}
.dvp-toast-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.dvp-toast--win  .dvp-toast-body strong { font-size: 1.05rem; color: #f0a500; }
.dvp-toast--lose .dvp-toast-body strong { font-size: 1.05rem; color: #bbb; }
.dvp-toast-body span { font-size: .85rem; color: #aaa; }
.dvp-toast-body .dvp-toast-sub2 { font-size: .8rem; color: #f0a500; opacity: .85; }
.dvp-toast-close {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
}
.dvp-toast-close:hover { color: #fff; }

/* ---------- カートのポイントフォーム ---------- */
.dvp-cart-points {
    background: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 20px;
}
.dvp-cart-points__title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
}
.dvp-cart-points__balance {
    margin: 0 0 10px;
    font-size: .92rem;
    color: #555;
}
.dvp-cart-points__using {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 8px;
}
.dvp-cart-points__empty {
    color: #888;
    font-size: .9rem;
    margin: 0;
}
.dvp-cart-points__form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}
.dvp-cart-points__form label {
    font-size: .9rem;
    margin: 0;
}
.dvp-points-input {
    width: 90px;
    text-align: center;
}
.dvp-btn-apply  { background: #f0a500 !important; color: #fff !important; border-color: #f0a500 !important; }
.dvp-btn-remove { background: #e74c3c !important; color: #fff !important; border-color: #e74c3c !important; }

/* ---------- ショートコード ---------- */
.dvp-sc--balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f0a500;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
}
.dvp-sc__icon  { font-size: 1.4rem; line-height: 1; }
.dvp-sc__value { font-size: .85rem; color: #ccc; margin-left: 4px; }

.dvp-sc--history {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.dvp-sc--history th,
.dvp-sc--history td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.dvp-sc--history th { background: #f5f5f5; font-weight: 600; }
.dvp-plus  { color: #27ae60; font-weight: 700; }
.dvp-minus { color: #e74c3c; font-weight: 700; }

/* ---------- マイアカウント ---------- */
.dvp-myaccount__title {
    font-size: 1.4rem;
    color: #1a1a2e;
}
.dvp-myaccount__value {
    color: #555;
    margin-bottom: 20px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 600px) {
    .dvp-toast {
        right: 12px;
        left: 12px;
        min-width: unset;
    }
    .dvp-cart-points__form {
        flex-direction: column;
        align-items: flex-start;
    }
}
