/* ========================================
   BEST BUY ACTIVITY COMPONENT
   Modern, Minimalistic Design
   ======================================== */

/* Container */
.bestbuy-activity {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    font-family: var(--font-family);
}

/* Progress indicator */
.bestbuy-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bestbuy-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e2e8f0;
    transition: all 0.3s ease;
}

.bestbuy-progress-dot.current {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.bestbuy-progress-dot.correct {
    background-color: #10b981;
}

.bestbuy-progress-dot.wrong {
    background-color: #ef4444;
}

/* Card counter */
.bestbuy-counter {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* The main question card - larger and cleaner */
.bestbuy-card {
    background: var(--white-color);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    margin: 0 auto;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.bestbuy-card.correct {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.bestbuy-card.incorrect {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.bestbuy-difficulty {
    text-align: center;
    margin-bottom: 1rem;
}

.bestbuy-difficulty .difficulty-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bestbuy-difficulty .difficulty-badge.easy {
    background: #d4edda;
    color: #155724;
}

.bestbuy-difficulty .difficulty-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.bestbuy-difficulty .difficulty-badge.hard {
    background: #f8d7da;
    color: #721c24;
}

.bestbuy-prompt {
    text-align: center;
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Instructions */
.bestbuy-instruction {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bestbuy-instruction p {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.bestbuy-rate-instruction {
    text-align: center;
    color: #475569;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Deals container */
.bestbuy-deals-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.bestbuy-deals-container.single {
    justify-content: center;
}

.bestbuy-deals-container.single .bestbuy-deal-card {
    max-width: 340px;
}

/* Individual deal card - larger and clickable */
.bestbuy-deal-card {
    background: white;
    border-radius: 24px;
    padding: 2.25rem 2rem;
    width: 300px;
    min-height: 280px;
    text-align: center;
    border: 3px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.bestbuy-deal-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.bestbuy-deal-card.selectable {
    cursor: pointer;
}

.bestbuy-deal-card.selectable:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
}

.bestbuy-deal-card.selected {
    border-color: var(--primary-color);
    background: #f5f7ff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.bestbuy-deal-card.correct-deal {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.bestbuy-deal-card.wrong-deal {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.bestbuy-deal-card.wrong-shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Deal label */
.bestbuy-deal-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Emoji display */
.bestbuy-deal-visual {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    min-height: 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem;
}

.bestbuy-deal-visual.many-items {
    font-size: 2rem;
}

.bestbuy-deal-visual.some-items {
    font-size: 2.25rem;
}

/* Organic emoji positioning */
.bestbuy-emoji {
    display: inline-block;
    transition: transform 0.2s ease;
}

.bestbuy-emoji:nth-child(odd) {
    transform: rotate(-5deg) translateY(2px);
}

.bestbuy-emoji:nth-child(even) {
    transform: rotate(4deg) translateY(-2px);
}

.bestbuy-emoji:nth-child(3n) {
    transform: rotate(-3deg) translateY(1px);
}

.bestbuy-emoji:nth-child(4n) {
    transform: rotate(6deg) translateY(-3px);
}

.bestbuy-emoji:nth-child(5n) {
    transform: rotate(-2deg) translateY(3px);
}

.bestbuy-more-indicator {
    display: inline-block;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-left: 0.25rem;
}

.bestbuy-emoji {
    display: inline-block;
}

/* Deal info (quantity and price) */
.bestbuy-deal-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bestbuy-deal-quantity {
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569;
}

.bestbuy-deal-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #10b981;
}

/* Rate inputs section - below deal cards */
.bestbuy-rate-inputs-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.bestbuy-rate-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.bestbuy-rate-row:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.bestbuy-rate-label {
    font-weight: 600;
    color: #475569;
    min-width: 60px;
    font-size: 0.9rem;
}

/* Unit rate input group */
.bestbuy-rate-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease, background 0.2s ease;
    flex: 1;
}

.bestbuy-rate-input-group:focus-within {
    border-color: var(--primary-color);
}

.bestbuy-rate-input-group.validated {
    border-color: #10b981;
    background: #f0fdf4;
}

.bestbuy-rate-input-group.error {
    border-color: #ef4444;
}

.bestbuy-rate-input-group.shake {
    animation: shake 0.4s ease-in-out;
}

.bestbuy-rate-prefix {
    color: #475569;
    font-weight: 600;
    font-size: 1rem;
}

.bestbuy-rate-input {
    width: 70px;
    text-align: center;
    padding: 0.4rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    outline: none;
    color: #1e293b;
}

.bestbuy-rate-input:disabled {
    color: #10b981;
}

.bestbuy-rate-input.validated {
    color: #10b981;
}

.bestbuy-rate-input.error {
    color: #ef4444;
}

.bestbuy-rate-suffix {
    color: #64748b;
    font-size: 0.85rem;
    white-space: nowrap;
}

.bestbuy-rate-check-btn {
    padding: 0.4rem 0.6rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bestbuy-rate-check-btn:hover {
    opacity: 0.9;
}

.bestbuy-rate-check-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bestbuy-rate-status {
    min-width: 20px;
    display: flex;
    align-items: center;
}

.bestbuy-rate-status .rate-correct {
    color: #10b981;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Inline rate inputs (below each deal card) */
.bestbuy-deal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bestbuy-inline-rate {
    margin-top: 0.75rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.bestbuy-inline-rate-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f1f5f9;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.bestbuy-inline-rate-group.shake {
    animation: cardShake 0.5s;
}

.bestbuy-inline-prefix {
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
}

.bestbuy-inline-rate-group .bestbuy-rate-input {
    width: 50px;
    padding: 0.3rem 0.4rem;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-align: center;
}

.bestbuy-inline-rate-group .bestbuy-rate-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.bestbuy-inline-rate-group .bestbuy-rate-input.validated {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.bestbuy-inline-rate-group .bestbuy-rate-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.bestbuy-inline-suffix {
    color: #64748b;
    font-size: 0.8rem;
    white-space: nowrap;
}

.bestbuy-inline-spacer {
    flex: 1;
}

.bestbuy-inline-check {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bestbuy-inline-check:hover:not(:disabled) {
    background: #5a67d8;
    transform: scale(1.05);
}

.bestbuy-inline-check:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bestbuy-inline-status {
    min-width: 18px;
    display: flex;
    align-items: center;
}

.bestbuy-inline-status .rate-correct {
    color: #10b981;
    font-size: 1rem;
    font-weight: 700;
}

/* Unit rate input (single deal questions) */
.bestbuy-unit-rate-input {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.bestbuy-unit-rate-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.bestbuy-unit-rate-group.shake {
    animation: cardShake 0.5s;
}

.bestbuy-unit-prefix {
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
}

.bestbuy-unit-rate-group .bestbuy-rate-input {
    width: 60px;
    padding: 0.4rem 0.5rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.bestbuy-unit-rate-group .bestbuy-rate-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.bestbuy-unit-rate-group .bestbuy-rate-input.validated {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.bestbuy-unit-rate-group .bestbuy-rate-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.bestbuy-unit-suffix {
    color: #64748b;
    font-size: 0.9rem;
    white-space: nowrap;
}

.bestbuy-unit-rate-group .bestbuy-rate-check-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin-left: 0.25rem;
}

/* Selection section - shows after all rates validated */
.bestbuy-selection-section {
    text-align: center;
    margin-top: 1rem;
}

.bestbuy-selection-prompt {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
}

/* Answer section - for follow-up questions */
.bestbuy-answer-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.bestbuy-answer-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.bestbuy-answer-prefix,
.bestbuy-answer-suffix {
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569;
}

.bestbuy-followup-input {
    width: 100px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s ease;
    color: #1e293b;
}

.bestbuy-followup-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.bestbuy-followup-input.error {
    border-color: #ef4444;
}

.bestbuy-submit-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.bestbuy-submit-btn:hover {
    opacity: 0.9;
}

.bestbuy-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Attempts indicator */
.bestbuy-attempts {
    display: flex;
    gap: 0.4rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.bestbuy-attempt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    transition: background-color 0.3s ease;
}

.bestbuy-attempt-dot.used {
    background-color: #ef4444;
}

/* Feedback message */
.bestbuy-feedback {
    margin-top: 1.25rem;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.bestbuy-feedback.hint {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid #fef08a;
}

.bestbuy-feedback.answer-reveal {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.bestbuy-feedback.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ========================================
   BEST BUY END SCREEN
   ======================================== */

.bestbuy-end-screen {
    text-align: center;
    padding: 2.5rem;
    background: var(--white-color);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.bestbuy-score-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.bestbuy-score-circle .score-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.bestbuy-score-circle .score-total {
    font-size: 1.2rem;
    opacity: 0.9;
}

.bestbuy-end-screen h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.bestbuy-results-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.bestbuy-result-stat {
    text-align: center;
}

.bestbuy-result-stat .number {
    font-size: 1.5rem;
    font-weight: 700;
}

.bestbuy-result-stat .label {
    font-size: 0.85rem;
    color: #666;
}

.bestbuy-result-stat.correct .number {
    color: #10b981;
}

.bestbuy-result-stat.wrong .number {
    color: #ef4444;
}

.bestbuy-tricky-section {
    margin-top: 2rem;
    text-align: left;
}

.bestbuy-tricky-section h4 {
    margin-bottom: 0.75rem;
    color: #f59e0b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bestbuy-tricky-list {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.bestbuy-tricky-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.bestbuy-tricky-item:last-child {
    border-bottom: none;
}

.bestbuy-tricky-item .bestbuy-tricky-question {
    display: block;
    color: #475569;
    margin-bottom: 0.25rem;
}

.bestbuy-tricky-item .bestbuy-tricky-answer {
    display: block;
    font-weight: 600;
    color: #10b981;
}

.bestbuy-restart-btn {
    margin-top: 2rem;
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.bestbuy-restart-btn:hover {
    opacity: 0.9;
}

/* ========================================
   BEST BUY PAGE HEADER
   ======================================== */

.bestbuy-page-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 40px 0 30px;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.bestbuy-page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bestbuy-page-header p {
    opacity: 0.9;
    font-size: 1rem;
}

.bestbuy-page-header .back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.bestbuy-page-header .back-link:hover {
    color: white;
}

.bestbuy-page-header .back-link::before {
    content: '\2190';
    margin-right: 0.5rem;
}

.bestbuy-page-header .header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bestbuy-page-header .header-top-row .back-link {
    margin-bottom: 0;
}

.bestbuy-page-header .header-top-row .back-link::before {
    display: none;
}

/* Deal card note (e.g., "Buy 2 Get 1 Free") */
.bestbuy-deal-note {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 600;
    background: #f0f9ff;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
}

/* Multi-part question layout */
.bestbuy-multipart-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.bestbuy-multipart-deal {
    flex: 0 0 auto;
}

.bestbuy-multipart-deal .bestbuy-deal-card {
    cursor: default;
}

.bestbuy-multipart-deal .bestbuy-deal-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #e2e8f0;
}

.bestbuy-multipart-questions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bestbuy-multipart-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bestbuy-multipart-row.completed {
    border-color: #10b981;
    background: #f0fdf4;
}

.bestbuy-multipart-row.incorrect {
    border-color: #ef4444;
    background: #fef2f2;
}

.bestbuy-multipart-row.shake {
    animation: shake 0.4s ease-in-out;
}

.bestbuy-multipart-question {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
}

.bestbuy-multipart-input-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.bestbuy-multipart-prefix,
.bestbuy-multipart-suffix {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.bestbuy-multipart-input {
    width: 70px;
    padding: 0.4rem 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s ease;
    color: #1e293b;
}

.bestbuy-multipart-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.bestbuy-multipart-input.validated {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.bestbuy-multipart-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.bestbuy-multipart-input:disabled {
    opacity: 0.7;
}

.bestbuy-multipart-check {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bestbuy-multipart-check:hover:not(:disabled) {
    background: #5a67d8;
    transform: scale(1.05);
}

.bestbuy-multipart-check:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bestbuy-multipart-status {
    min-width: 20px;
    display: flex;
    align-items: center;
}

.bestbuy-multipart-status .rate-correct {
    color: #10b981;
    font-size: 1.1rem;
    font-weight: 700;
}

.bestbuy-multipart-status .rate-incorrect {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================================
   BEST BUY RESPONSIVE
   ======================================== */

@media (max-width: 700px) {
    .bestbuy-deals-container {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }

    .bestbuy-deal-card {
        width: 100%;
        max-width: 340px;
        min-height: auto;
        padding: 1.75rem;
    }

    .bestbuy-deal-wrapper {
        width: 100%;
        max-width: 340px;
    }

    .bestbuy-deal-wrapper .bestbuy-deal-card {
        width: 100%;
    }

    .bestbuy-rate-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .bestbuy-rate-input-group {
        width: 100%;
    }

    .bestbuy-multipart-layout {
        flex-direction: column;
        align-items: center;
    }

    .bestbuy-multipart-deal .bestbuy-deal-card {
        width: 100%;
        max-width: 340px;
    }

    .bestbuy-multipart-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 500px) {
    .bestbuy-activity {
        padding: 0 0.75rem;
    }

    .bestbuy-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .bestbuy-prompt {
        font-size: 1.2rem;
    }

    .bestbuy-deal-visual {
        font-size: 1.75rem;
        min-height: 45px;
    }

    .bestbuy-deal-visual.many-items {
        font-size: 1.4rem;
    }

    .bestbuy-rate-inputs-section {
        padding: 1rem;
    }

    .bestbuy-rate-input {
        width: 60px;
    }

    .bestbuy-results-summary {
        gap: 1.5rem;
    }

    .bestbuy-page-header .header-top-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .bestbuy-answer-input-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

