/* =========================================================
   DPP Stand Pricing — Frontend Styles
   Inspired by the custom-shape card grid in the screenshot
   ========================================================= */

.dpp-stand-wrapper {
    margin: 20px 0;
    font-family: inherit;
}

/* ---- Section Title ---- */
.dpp-stand-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    padding: 0 0 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    position: relative;
}
.dpp-stand-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: #0274be;
}
html[dir="rtl"] .dpp-stand-section-title::after {
    left: auto;
    right: 0;
}

/* ---- Steps ---- */
.dpp-stand-step {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 16px 14px;
    margin-bottom: 14px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.dpp-stand-step:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.dpp-stand-step--hidden {
    display: none !important;
}

.dpp-stand-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #1e293b;
    margin-bottom: 12px;
}
.dpp-stand-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0274be;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Size Select ---- */
.dpp-stand-size-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
}
.dpp-stand-size-select:focus {
    outline: none;
    border-color: #0274be;
    box-shadow: 0 0 0 3px rgba(2,116,190,0.15);
}

/* ---- Card Grid ---- */
.dpp-stand-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.dpp-stand-cards--small {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

@media (max-width: 500px) {
    .dpp-stand-cards {
        grid-template-columns: 1fr;
    }
    .dpp-stand-cards--small {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Individual Card ---- */
.dpp-stand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.12s;
    text-align: center;
    user-select: none;
    gap: 6px;
    min-height: 120px;
}
.dpp-stand-cards--small .dpp-stand-card {
    min-height: 90px;
    padding: 10px 8px;
}

.dpp-stand-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

/* Card Image area */
.dpp-stand-card__img {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dpp-stand-cards--small .dpp-stand-card__img {
    width: 44px;
    height: 44px;
}
.dpp-stand-card__img svg,
.dpp-stand-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.dpp-stand-card__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.dpp-stand-card__price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0274be;
    min-height: 16px;
}

/* Checkmark badge */
.dpp-stand-card__check {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0274be;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
html[dir="rtl"] .dpp-stand-card__check {
    right: auto;
    left: 6px;
}

/* Hover state */
.dpp-stand-card:hover {
    border-color: #93c5fd;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2,116,190,0.1);
}

/* Selected state */
.dpp-stand-card:has(input:checked) {
    border-color: #0274be;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(2,116,190,0.25);
    transform: none;
}
.dpp-stand-card:has(input:checked) .dpp-stand-card__name {
    color: #0274be;
}
.dpp-stand-card:has(input:checked) .dpp-stand-card__check {
    display: flex;
}

/* ---- Price Summary ---- */
.dpp-stand-summary {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 6px;
    background: #fff;
}
.dpp-stand-summary__title {
    background: #f1f5f9;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
}
.dpp-stand-summary__rows {
    padding: 10px 16px;
}
.dpp-stand-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.83rem;
    color: #475569;
}
.dpp-stand-summary-row:last-child {
    border-bottom: none;
}
.dpp-stand-summary-row__label {
    font-weight: 500;
}
.dpp-stand-summary-row__value {
    font-weight: 600;
    color: #1e293b;
}
.dpp-stand-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #0274be;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-top: 2px solid #025ca3;
}
