/*
 * File: assets/css/common/lottery-picker-base.css
 * Version: v1.0.1
 * Updated: 2026-03-18
 * Purpose: Keno8 / DoubleColor / DLT / 3D 选号页共用的价格、按钮、说明与加减卡视觉层。
 */
/* ========= 玩法 / 价格胶囊 ========= */
.play-type,
.play-type-3d,
.price-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px !important;
    flex-wrap: wrap;
    margin-bottom: 16px !important;
    background: transparent !important;
    font-size: 13px;
}

.play-type label,
.play-type-3d label,
.price-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 999px !important;
    background: #f6f9fd !important;
    color: #334155 !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.play-type label:hover,
.play-type-3d label:hover,
.price-options label:hover {
    background: #eef4fb !important;
    border-color: #bfd3ea !important;
    transform: translateY(-1px);
}

.play-type input[type="radio"],
.play-type-3d input[type="radio"],
.price-options input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border: 1.5px solid #b9c9de !important;
    border-radius: 50% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    cursor: pointer;
    display: inline-grid !important;
    place-items: center !important;
    position: relative !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.play-type input[type="radio"]::before,
.play-type-3d input[type="radio"]::before,
.price-options input[type="radio"]::before {
    content: '';
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #c9a96e !important;
    transform: scale(0) !important;
    transition: transform .18s ease !important;
    position: static !important;
}

.play-type input[type="radio"]:checked,
.play-type-3d input[type="radio"]:checked,
.price-options input[type="radio"]:checked {
    border-color: #c9a96e !important;
    box-shadow: 0 0 0 4px rgba(201, 169, 110, .12) !important;
    background: #fff !important;
}

.play-type input[type="radio"]:checked::before,
.play-type-3d input[type="radio"]:checked::before,
.price-options input[type="radio"]:checked::before {
    transform: scale(1) !important;
}

.price-value {
    color: #d62839;
    font-weight: 600;
}

/* ========= 按钮 / 状态条 ========= */
.buttons-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}

.status-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 14px !important;
    background: #f7fbff !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    flex: 1;
}

.lottery-button.clear {
    min-height: 42px;
    padding: 0 16px !important;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 14px !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
    flex: 1;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lottery-button.clear:hover {
    background: #f6f9fd !important;
    border-color: #bfd3ea !important;
    transform: translateY(-1px);
}

.lottery-button.randomize,
.lottery-orders button.lottery-button.randomize {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px;
    height: 42px !important;
    line-height: 1 !important;
    padding: 0 16px !important;
    margin: 0 !important;
    background: #c9a96e !important;
    background-color: #c9a96e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 14px 30px rgba(201, 169, 110, .18) !important;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lottery-button.randomize:hover,
.lottery-orders button.lottery-button.randomize:hover {
    background: #b8935a !important;
    background-color: #b8935a !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(51, 136, 255, .22) !important;
}

.lottery-button#buy-button,
.lottery-orders button#buy-button {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0 20px !important;
    margin-top: 22px !important;
    background: #c9a96e !important;
    background-color: #c9a96e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    box-shadow: 0 14px 30px rgba(201, 169, 110, .18) !important;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
    filter: none !important;
}

.lottery-button#buy-button:hover:not(:disabled),
.lottery-orders button#buy-button:hover:not(:disabled) {
    background: #b8935a !important;
    background-color: #b8935a !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(51, 136, 255, .22) !important;
    filter: none !important;
}

.lottery-button#buy-button:disabled,
.lottery-orders button#buy-button:disabled,
.lottery-orders button#buy-button[aria-disabled="true"],
.lottery-orders button#buy-button.is-disabled,
.lottery-orders .lottery-button#buy-button:disabled,
.lottery-orders .lottery-button#buy-button[aria-disabled="true"],
.lottery-orders .lottery-button#buy-button.is-disabled {
    background: var(--danger-color) !important;
    background-color: var(--danger-color) !important;
    color: #fff !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
    pointer-events: none;
}

/* ========= 结果 / 说明 ========= */
.expected-result {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    padding: 16px 18px !important;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%) !important;
    border: 1px solid #dbe4ef !important;
    border-left: 1px solid #dbe4ef !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04) !important;
    text-align: left;
}

.expected-result p {
    margin: 8px 0 !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    font-weight: 500 !important;
}

.expected-result span,
.lottery-orders strong,
.lottery-orders b {
    font-weight: 600 !important;
    color: #009944 !important;
}

.instructions {
    padding: 16px 18px !important;
    background: #f8fbff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #52637a !important;
    font-weight: 500 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04) !important;
}

/* ========= Add card / 加号按钮 ========= */
.lottery-orders .lottery-card--adder .add-card__inner {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    position: relative !important;
    margin: 0 auto 10px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
    overflow: visible !important;
}

.lottery-orders .lottery-card--adder .add-card__inner::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 30px !important;
    height: 30px !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 30px 30px !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20t%3D%221773163072374%22%20viewBox%3D%220%200%201024%201024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20p-id%3D%221631%22%3E%3Cpath%20d%3D%22M512%200C229.232731%200%200%20229.230924%200%20512S229.232731%201024%20512%201024c282.767269%200%20512-229.232731%20512-512S794.767269%200%20512%200z%20m268.803387%20550.394807H550.394807v230.40858c0%2027.160122-11.250941%2038.396613-38.394807%2038.396613-27.160122%200-38.412869-11.236491-38.412869-38.396613V550.394807H243.194807c-27.160122%200-38.394807-11.236491-38.394807-38.394807%200-27.143866%2011.236491-38.396613%2038.394807-38.396613h230.392324V243.196613c0-27.14206%2011.252747-38.396613%2038.412869-38.396613%2027.143866%200%2038.394807%2011.252747%2038.394807%2038.396613v230.406774h230.40858c27.143866%200%2038.394807%2011.252747%2038.394807%2038.396613%200%2027.158316-11.250941%2038.394807-38.394807%2038.394807z%22%20fill%3D%22%232d2d2d%22%20p-id%3D%221632%22/%3E%3C/svg%3E") !important;
}

/* ========= 响应式（选号页） ========= */
@media (max-width: 768px) {
    .price-options {
        flex-direction: column;
        gap: 8px !important;
    }
}

@media (max-width: 767px) {
    .lottery-orders {
        margin: 24px auto 34px !important;
        padding: 0 14px 24px !important;
    }

    .modules-wrapper {
        gap: 16px !important;
    }

    .lottery-card {
        padding: 20px !important;
        border-radius: 22px !important;
    }

    .play-type,
    .play-type-3d,
    .price-options {
        gap: 10px !important;
    }

    .play-type label,
    .play-type-3d label,
    .price-options label {
        min-height: 38px;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .buttons-container {
        gap: 10px !important;
    }

    .status-display,
    .lottery-button.clear {
        min-height: 40px;
        font-size: 12px !important;
    }

    .lottery-button.randomize,
    .lottery-button#buy-button,
    .lottery-orders button.lottery-button.randomize,
    .lottery-orders button#buy-button {
        min-height: 48px;
        font-size: 14px !important;
    }

    .modal-content {
        width: min(92vw, 540px) !important;
        padding: 22px 16px 18px !important;
    }

    .modal-title {
        font-size: 22px !important;
    }
}

@media (max-width: 768px) {
    .expected-result {
        padding: 14px 16px !important;
    }
    .expected-result p {
        font-size: 11px !important;
        line-height: 1.5 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
    .expected-result .expected-numbers,
    .expected-result .winning-probability {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
}

#buy-button.is-cart-limit-disabled{opacity:.55;cursor:not-allowed;}
