.ifb-account-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.ifb-dashboard-summary {
    margin-bottom: 28px;
}
.ifb-intro,
.ifb-muted,
.ifb-summary {
    color: #666;
}
.ifb-package-card {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    margin: 0 0 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
    overflow: hidden;
}
.ifb-package-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    cursor: pointer;
    user-select: none;
}
.ifb-package-head:focus {
    outline: 2px solid #c62828;
    outline-offset: -2px;
}
.ifb-package-title h3,
.ifb-package-head h3 {
    margin: 0 0 6px;
}
.ifb-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ifb-counter {
    min-width: 150px;
    text-align: center;
    border-radius: 12px;
    background: #f7f7f7;
    padding: 14px;
}
.ifb-counter strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}
.ifb-counter span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
.ifb-toggle-package {
    appearance: none;
    border: 1px solid rgba(198, 40, 40, .22);
    background: #fff5f5;
    border-radius: 999px;
    padding: 9px 15px;
    cursor: pointer;
    color: #b71c1c;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(198, 40, 40, .08);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ifb-toggle-package:hover,
.ifb-toggle-package:focus {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(198, 40, 40, .18);
}
.ifb-toggle-package:focus-visible {
    outline: 2px solid rgba(198, 40, 40, .28);
    outline-offset: 3px;
}
.ifb-toggle-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 40, 40, .10);
    transition: transform .22s ease, background .18s ease;
    flex: 0 0 auto;
}
.ifb-toggle-icon svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ifb-toggle-package:hover .ifb-toggle-icon,
.ifb-toggle-package:focus .ifb-toggle-icon {
    background: rgba(255,255,255,.18);
}
.ifb-package-card.is-open .ifb-toggle-icon {
    transform: rotate(180deg);
}
.ifb-package-body {
    padding: 0 22px 22px;
}
.ifb-package-card.is-collapsed .ifb-package-body {
    display: none;
}
.ifb-progress {
    height: 10px;
    background: #efefef;
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0 10px;
}
.ifb-progress span {
    display: block;
    height: 100%;
    background: #c62828;
    border-radius: 999px;
}
.ifb-selected-list {
    margin-top: 22px;
    width: 100%;
}
.ifb-selected-list table,
.ifb-selected-list .shop_table,
.ifb-account-wrap table.shop_table {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.ifb-selected-list h4,
.ifb-select-form h4 {
    margin-bottom: 10px;
}
.ifb-selected-list td .button {
    margin: 2px 4px 2px 0;
}
.ifb-select-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    padding: 16px;
    margin-top: 18px;
}
.ifb-select-form h4 {
    flex: 0 0 100%;
}
.ifb-select-form .ifb-muted {
    flex: 0 0 100%;
    margin-top: -4px;
}
.ifb-select-form select {
    min-width: min(420px, 100%);
    max-width: 100%;
}
.ifb-change-course-box {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    min-width: min(420px, 100%);
}
.ifb-change-course-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.ifb-change-course-form select {
    max-width: 100%;
    min-width: min(260px, 100%);
}
.ifb-change-note {
    font-size: 12px;
    margin: 8px 0 0;
}
.ifb-view-all {
    margin-top: 10px;
}
.ifb-view-all-inside {
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-top: 18px;
    text-align: right;
}
.ifb-status-ok {
    color: #267a2f;
    font-weight: 600;
}
button.ifb-loading,
.button.ifb-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
    text-shadow: none !important;
    opacity: .85;
}
button.ifb-loading::after,
.button.ifb-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-right-color: transparent;
    animation: ifb-spin .65s linear infinite;
}
@keyframes ifb-spin {
    to { transform: rotate(360deg); }
}
@media (max-width: 700px) {
    .ifb-package-head {
        display: block;
    }
    .ifb-head-actions {
        align-items: stretch;
        margin-top: 12px;
    }
    .ifb-counter {
        flex: 1;
        text-align: left;
    }
    .ifb-toggle-package {
        justify-content: center;
    }
    .ifb-select-form select,
    .ifb-select-form button,
    .ifb-change-course-form select,
    .ifb-change-course-form button {
        width: 100%;
    }
}
