/* BundlePress Volume Upsell CSS (Vanilla, Match Chakra UI) */

.bundlepress-volume-upsell-wrapper {
    font-family: inherit;
    padding: 20px;
    background: transparent;
    transition: background 0.2s;
    box-sizing: border-box;
    margin: 24px 0;
    overflow: hidden;
}
.bundlepress-volume-upsell-wrapper * {
    box-sizing: border-box;
}
.bundlepress-volume-upsell-wrapper:hover {
    background: var(--bp-hover-bg, #ebf8ff); /* blue.50 */
}

.bp-vol-header {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
}
.bp-vol-heading-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bp-vol-dot {
    width: 2px;
    height: 2px;
    background-color: #3182ce; /* blue.500 */
    border-radius: 9999px; /* full */
    display: inline-block;
}
.bp-vol-heading {
    font-size: 12px; /* xs */
    text-transform: uppercase;
    color: #2b6cb0; /* blue.600 */
    letter-spacing: 0.1em; /* widest */
    font-weight: 900; /* black */
    margin: 0;
    line-height: 1.2;
}

.bp-vol-tiers-grid {
    display: grid;
    gap: 12px;
}
/* Layout specific overrides */
.bundlepress-volume-layout-list .bp-vol-tiers-grid {
    grid-template-columns: 1fr;
}
.bundlepress-volume-layout-grid .bp-vol-tiers-grid {
    grid-template-columns: repeat(var(--bp-vol-cols, 3), 1fr);
}
@media (max-width: 480px) {
    .bundlepress-volume-layout-grid .bp-vol-tiers-grid {
        grid-template-columns: 1fr;
    }
}

.bp-vol-tier-card {
    position: relative;
    border: 2px solid #edf2f7; /* gray.100 */
    border-radius: 16px; /* 2xl */
    padding: 16px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* sm */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    overflow: hidden;
    flex: 1; /* Stretch to equal heights in flex/grid */
}
.bp-vol-tier-card.selected {
    border-color: #3182ce; /* blue.500 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* md */
}
.bp-vol-tier-card:hover {
    border-color: #63b3ed; /* blue.300 */
    transform: translateY(-2px);
}
.bundlepress-volume-layout-grid .bp-vol-tier-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.bundlepress-volume-layout-list .bp-vol-tier-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.bp-vol-popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 800;
    border-bottom-left-radius: 6px; /* md */
    text-transform: uppercase;
    z-index: 2;
    line-height: 1.2;
}

.bp-vol-tier-left, .bp-vol-tier-right {
    display: flex;
    flex-direction: column;
}
.bundlepress-volume-layout-list .bp-vol-tier-left {
    align-items: flex-start;
}
.bundlepress-volume-layout-list .bp-vol-tier-right {
    align-items: flex-end;
}
.bundlepress-volume-layout-grid .bp-vol-tier-left,
.bundlepress-volume-layout-grid .bp-vol-tier-right {
    align-items: center;
}

.bp-vol-tier-name {
    font-weight: 800;
    font-size: 12px; /* xs */
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}
.bp-vol-tier-card.selected .bp-vol-tier-name {
    color: #2c5282; /* blue.700 */
}
.bp-vol-tier-card:not(.selected) .bp-vol-tier-name {
    color: #718096; /* gray.500 */
}

.bp-vol-tier-badge {
    padding: 3px 10px;
    background-color: var(--bp-badge-bg);
    color: var(--bp-badge-color);
    font-size: 12px;
    font-weight: 700;
    border-radius: 9999px; /* full */
    margin-top: 4px;
    display: inline-block;
    line-height: 1.2;
}
.bundlepress-volume-layout-list .bp-vol-tier-badge {
    font-size: 10px;
    padding: 2px 8px;
    text-transform: uppercase;
    font-weight: 800;
}

.bp-vol-price-wrap {
    display: flex;
    flex-direction: column;
}
.bundlepress-volume-layout-grid .bp-vol-price-wrap {
    align-items: center;
}
.bundlepress-volume-layout-list .bp-vol-price-wrap {
    align-items: flex-end;
}

.bp-vol-price-final {
    font-weight: 900; /* black */
    font-size: 16px;
    margin: 0;
    line-height: 1.2;
}
.bp-vol-tier-card.selected .bp-vol-price-final {
    color: #2b6cb0; /* blue.600 */
}
.bp-vol-tier-card:not(.selected) .bp-vol-price-final {
    color: #1a202c; /* gray.800 */
}

.bp-vol-price-regular {
    font-size: 13px;
    color: #a0aec0; /* gray.400 */
    text-decoration: line-through;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

/* Variations */
.bp-vol-variations-wrapper {
    margin-top: 28px;
}
.bp-vol-variations-divider {
    height: 1px;
    background: #bee3f8; /* blue.100 */
    margin-bottom: 12px;
}
.bp-vol-variations-labels {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding-left: 49px; /* 26px badge + 12px gap + 11px padding roughly */
    padding-right: 4px;
}
.bp-vol-variations-label {
    flex: 1;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #a0aec0; /* gray.400 */
    margin: 0;
}

.bp-vol-variations-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bp-vol-var-row {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 12px;
    border-radius: 12px; /* xl */
    border: 1px solid #bee3f8; /* blue.100 */
    align-items: center;
    width: 100%;
}
.bp-vol-var-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #bee3f8; /* blue.100 */
    color: #2b6cb0; /* blue.600 */
    border-radius: 9999px; /* full */
    width: 26px;
    height: 26px;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}
.bp-vol-var-selects {
    display: flex;
    flex: 1;
    gap: 12px;
}
.bp-vol-attr-select {
    flex: 1;
    font-size: 14px; /* sm */
    font-weight: 600;
    padding: 0 12px;
    border-radius: 6px; /* md */
    border: 1px solid transparent;
    background: #f7fafc; /* gray.50 */
    height: 32px;
    color: #1a202c;
    appearance: none; /* remove default arrow to match somewhat, or just leave it */
    transition: all 0.2s;
}
.bp-vol-attr-select:hover {
    background: #ebf8ff; /* blue.50 */
}
.bp-vol-attr-select:focus {
    background: #fff;
    border-color: #3182ce; /* blue.500 */
    outline: none;
}

/* Button */
.bp-vol-submit-btn {
    width: 100%;
    height: 50px;
    border-radius: 12px; /* xl */
    background-color: var(--bp-btn-bg);
    color: var(--bp-btn-color);
    font-weight: 900; /* black */
    font-size: 14px; /* sm */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* wider */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* md */
    transition: all 0.2s;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-vol-variations-wrapper.is-visible + .bp-vol-submit-btn {
    margin-top: 8px;
}
.bp-vol-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* lg */
    opacity: 0.9;
}
.bp-vol-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: none;
}
