/**
 * Football Bai Frontend CSS
 */



.football-bai-wholesale-fields h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}

/* Title styles */
.football-bai-wholesale-fields h3.customize-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Size section overall */
.football-bai-clothing-size-section {
    margin-bottom: 20px;
    text-align: center;
}

/* Size section title */
.football-bai-clothing-size-section label {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Size section */
.football-bai-size-section,
.football-bai-clothing-size-section,
.football-bai-squad-section {
    margin-bottom: 15px;
}

.football-bai-size-section label,
.football-bai-clothing-size-section label,
.football-bai-team-section label,
.football-bai-squad-section label {
    display: block;
    margin-bottom: 0px;
    font-weight: bold;
}

.football-bai-size-section select,
.football-bai-clothing-size-section select,
.football-bai-team-section select,
.football-bai-squad-section select {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Team section */
.football-bai-team-section {
    position: relative;
    margin-bottom: 15px;
}

.football-bai-team-preview {
    margin-top: 10px;
}

.football-bai-team-preview img {
    max-width: 100px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Price section */
.football-bai-price-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.football-bai-custom-price {
    font-weight: bold;
    font-size: 16px;
    color: #77a464;
}

.football-bai-price-amount {
    font-size: 18px;
}

/* Size buttons container */
.football-bai-size-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    margin: 0 auto;
    border-collapse: collapse;
}

.football-bai-size-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: -1px 0 0 -1px; /* Offset to make borders overlap correctly */
    height: 45px;
}

/* Force last row to have only 3 columns */
.football-bai-size-button:nth-child(5),
.football-bai-size-button:nth-child(6),
.football-bai-size-button:nth-child(7) {
    grid-column: span 1;
}

.football-bai-size-button input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.football-bai-size-button .size-label {
    pointer-events: none;
    font-weight: normal;
}

/* Selected state for size buttons */
.football-bai-size-button.active,
.football-bai-size-button:hover {
    position: relative;
    z-index: 1;
    border-color: #000;
}

.football-bai-size-button.active .size-label {
    font-weight: bold;
}

/* CUSTOMIZE section styling */
.football-bai-customization-options {
    margin-top: 10px;
    margin-bottom: 15px;
    display: flex;
    gap: 30px;
}

.football-bai-customization-options .option-label {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.football-bai-customization-options input[type="radio"] {
    margin-right: 8px;
}

/* Select dropdown styling */
.football-bai-squad-section select,
.football-bai-team-section select {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px 12px 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 0;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.football-bai-quantity-section select {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 0;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* Quantity section styling */
.football-bai-quantity-section {
    margin-bottom: 15px;
}

.football-bai-quantity-section label {
    display: block;
    margin-bottom: 0px;
    font-weight: bold;
}

.football-bai-quantity-section select {
    max-width: 400px;
}

/* Patch dropdown with t-shirt icon */
.football-bai-team-section:before {
    display: none;
}

.football-bai-team-section select {
    padding-left: 45px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Custom player input styling */
.football-bai-custom-player-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    margin-bottom: 15px;
}

.football-bai-custom-player-section input {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    height: 45px;
}

.football-bai-custom-player-section input:focus {
    border-color: #999;
    outline: none;
}

/* Select2 custom styling */
.select2-container--default .select2-selection--single {
    height: 45px !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    background-color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 43px !important;
    padding-left: 45px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px !important;
}

.select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
}

/* Patch dropdown options */
.patch-option {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.patch-image {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patch-image img {
    max-width: 100%;
    max-height: 100%;
}

.patch-info {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Selected patch in dropdown */
.patch-selection {
    display: flex;
    align-items: center;
}

.patch-image-mini {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patch-image-mini img {
    max-width: 100%;
    max-height: 100%;
}

.patch-info-mini {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tshirt icon styling - required even without Select2 */
.football-bai-team-section {
    position: relative;
}

.football-bai-team-section:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 20px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M16 2H8L6 5v11h12V5zm0 12H8V9h8z' fill='%23ddd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
}

/* 修复下拉菜单自动收起的问题 */
select:focus {
    pointer-events: auto !important;
}

/* 确保下拉菜单选项在点击时能正常显示 */
select option {
    padding: 10px;
    background-color: #fff;
}

/* Patch选项样式优化 */
select option:hover,
select option:focus {
    background-color: #f5f5f5 !important;
    color: #000 !important;
}

/* 自定义下拉菜单样式 */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.selected-option {
    border: 1px solid #ddd;
    padding: 12px 12px 12px 45px;
    background-color: #fff;
    position: relative;
    height: 45px;
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 关闭图标样式 */
.selected-option .close-icon {
    position: absolute;
    right: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    width: 20px;
    height: 20px;
    transition: color 0.2s;
}

.selected-option .close-icon:hover {
    color: #333;
}

.dropdown-options {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    border: 1px solid #ddd;
    border-top: none;
    background-color: #fff;
    z-index: 999;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dropdown-option {
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #f9f9f9;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.option-image {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}

.option-content {
    flex: 1;
}

.option-price {
    font-weight: bold;
    color: #333;
}

.option-number {
    color: #666;
    margin-left: 5px;
}

.option-title {
    margin-left: 5px;
}

.no-selection {
    color: #666;
}

/* Bundle Products Display */
.football-bai-bundle-display {
    margin-bottom: 30px;
    border: 1px solid #eee;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 3px;
    position: relative;
}

.bundle-images {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.bundle-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 5px;
}

.bundle-plus {
    font-size: 24px;
    font-weight: bold;
    margin: 0 15px;
    color: #333;
}

.bundle-action {
    text-align: center;
    margin-left: 15px;
}

.bundle-action-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.view-bundle-products {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.2s;
    font-weight: 500;
}

.view-bundle-products:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* Bundle Products Sidebar */
.bundle-products-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: transform 0.3s ease;
    transform: translateX(100%);
}

.bundle-products-sidebar.active {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 2;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.close-sidebar {
    font-size: 24px;
    cursor: pointer;
    color: #000;
    transition: color 0.2s;
    height: 24px;
    width: 24px;
    line-height: 24px;
    text-align: center;
}

.close-sidebar:hover {
    color: #333;
}

.sidebar-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

.bundle-products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bundle-product-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.bundle-product-item:last-child {
    border-bottom: none;
}

.bundle-product-image {
    width: 120px;
    margin-right: 20px;
}

.bundle-product-image img {
    width: 100%;
    height: auto;
    border: 1px solid #f5f5f5;
}

.bundle-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bundle-product-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.3;
}

.bundle-product-price {
    margin-top: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.bundle-product-current-price {
    font-weight: bold;
    font-size: 18px;
    color: #000;
}

.bundle-product-original-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
    font-size: 14px;
}

.bundle-product-select-size {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    width: 150px;
    position: relative;
}

.bundle-product-select-size:after {
    content: "→";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.bundle-product-select-size:hover {
    background-color: #f5f5f5;
}

/* Responsive styles for the bundle sidebar */
@media (max-width: 500px) {
    .bundle-products-sidebar {
        width: 100%;
        transform: translateX(100%);
    }
    
    .bundle-product-item {
        flex-direction: column;
    }
    
    .bundle-product-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .bundle-product-select-size {
        width: 100%;
    }
}

/* Product Detail Sidebar */
.product-detail-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
}

.product-detail-sidebar.active {
    transform: translateX(0);
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 2;
}

.product-detail-header .back-button {
    font-size: 24px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-header .close-sidebar {
    font-size: 24px;
    cursor: pointer;
    color: #000;
    height: 24px;
    width: 24px;
    line-height: 24px;
    text-align: center;
}

.product-detail-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.product-detail-image {
    text-align: center;
    margin-bottom: 20px;
}

.product-detail-image img {
    max-width: 100%;
    height: auto;
}

.product-detail-info h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px;
    line-height: 1.3;
}

.product-detail-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-detail-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-detail-current-price {
    font-weight: bold;
    font-size: 18px;
    color: #000;
}

.product-detail-original-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
    font-size: 14px;
}

/* Product Detail Customization Sections */
.product-detail-customization {
    margin-bottom: 20px;
}

.product-detail-section-title,
.product-detail-size-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-guide-link {
    font-size: 14px;
    color: #000;
    text-decoration: underline;
    font-weight: normal;
}

/* Clothing Sizes Section */
 

.product-detail-size-option {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 45px;
}

.product-detail-size-option:hover, 
.product-detail-size-option.selected {
    position: relative;
    z-index: 1;
    border-color: #000;
}

/* Patches & Squad Roster Sections */
.product-detail-patches-section,
.product-detail-squad-section {
    margin-bottom: 20px;
}

/* Patches选项样式 */
.product-detail-patches-select .selected-option {
    padding: 12px 12px 12px 45px; /* 左侧留出空间显示图标 */
}

/* CUSTOMIZE选项样式 */
.product-detail-player-select .selected-option {
    padding: 12px; /* 不需要左侧空间 */
}

/* 通用下拉菜单样式 */
.detail-customization-select {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 0;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* 定制类型单选按钮 */
.product-detail-customization-options {
    margin-top: 10px;
    margin-bottom: 15px;
    display: flex;
    gap: 30px;
}

.product-detail-customization-options .option-label {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.product-detail-customization-options input[type="radio"] {
    margin-right: 8px;
}

/* 自定义球员输入框 */
.product-detail-custom-player {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    margin-bottom: 15px;
}

.product-detail-custom-player input {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    height: 45px;
}

.product-detail-custom-player input:focus {
    border-color: #999;
    outline: none;
}

/* 添加到购物袋按钮 */
.product-detail-actions {
    margin-top: 20px;
}

/* 添加到购物袋按钮样式 */
.add-to-bag-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.add-to-bag-button:after {
    content: "→";
    font-size: 20px;
}

.add-to-bag-button:hover {
    background-color: #333;
}

/* 增强与详情页的一致性 */
.product-detail-customization .football-bai-size-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: -1px 0 0 -1px;
    height: 45px;
}

.product-detail-customization .football-bai-size-button input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.product-detail-customization .football-bai-size-button .size-label {
    pointer-events: none;
    font-weight: normal;
}

.product-detail-customization .football-bai-size-button.active,
.product-detail-customization .football-bai-size-button:hover {
    position: relative;
    z-index: 1;
    border-color: #000;
}

.product-detail-customization .football-bai-size-button.active .size-label {
    font-weight: bold;
}

/* 自定义下拉菜单样式 */
.product-detail-customization .custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.product-detail-customization .selected-option {
    border: 1px solid #ddd;
    padding: 12px 12px 12px 45px;
    background-color: #fff;
    position: relative;
    height: 45px;
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-detail-customization .selected-option .close-icon {
    position: absolute;
    right: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    width: 20px;
    height: 20px;
    transition: color 0.2s;
}

.product-detail-customization .selected-option .close-icon:hover {
    color: #333;
}

.product-detail-customization .dropdown-options {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    border: 1px solid #ddd;
    border-top: none;
    background-color: #fff;
    z-index: 999;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-detail-customization .dropdown-option {
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.product-detail-customization .dropdown-option:hover {
    background-color: #f9f9f9;
}

@media (max-width: 500px) {
    .product-detail-sidebar {
        width: 100%;
        transform: translateX(100%);
    }
    
    .product-detail-sizes {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cart Success Popup */
.cart-success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 750px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-success-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

/* Prevent body scroll when popup is active on mobile */
body.cart-popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    body.cart-popup-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.cart-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-cart-popup {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    color: #999;
    transition: color 0.2s;
}

.close-cart-popup:hover {
    color: #333;
}

.cart-popup-content {
    display: flex;
    min-height: 300px;
}

.cart-popup-left {
    flex: 1;
    padding: 25px;
    border-right: 1px solid #eee;
}

.cart-popup-right {
    width: 280px;
    background-color: #f8f8f8;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.cart-popup-product {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.cart-popup-image {
    width: 120px;
    flex-shrink: 0;
}

.cart-popup-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cart-popup-info {
    flex: 1;
}

.cart-popup-info h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
}

.cart-popup-size {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.cart-popup-price {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.cart-popup-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-popup-summary-title {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cart-popup-summary-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-popup-totals {
    margin-bottom: 25px;
}

.cart-popup-total,
.cart-popup-total-sum {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.cart-popup-total span:first-child,
.cart-popup-total-sum span:first-child {
    color: #666;
}

.cart-popup-total span:last-child,
.cart-popup-total-sum span:last-child {
    color: #000;
    font-weight: 600;
}

.cart-popup-total-sum {
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: bold;
    font-size: 15px;
}

.cart-popup-checkout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 0.5px;
}

.cart-popup-checkout:after {
    content: "→";
    font-size: 18px;
    font-weight: normal;
}

.cart-popup-checkout:hover {
    background-color: #333;
}

/* Mobile Bottom Sheet Style */
@media (max-width: 768px) {
    .cart-success-popup {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        max-height: 85vh;
        transform: translateY(100%);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
        overflow: hidden;
    }
    
    .cart-success-popup.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .cart-popup-header {
        padding: 20px 20px 15px;
        position: relative;
        border-bottom: 1px solid #eee;
    }
    
    .cart-popup-header:before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: #ddd;
        border-radius: 2px;
    }
    
    .cart-popup-header h3 {
        font-size: 16px;
        margin-top: 8px;
    }
    
    .close-cart-popup {
        font-size: 24px;
    }
    
    .cart-popup-content {
        flex-direction: column;
        min-height: auto;
        max-height: calc(85vh - 80px);
        overflow-y: auto;
    }
    
    .cart-popup-left {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 20px;
        flex-shrink: 0;
    }
    
    .cart-popup-right {
        width: 100%;
        padding: 20px;
        background-color: #f8f8f8;
    }
    
    .cart-popup-product {
        align-items: center;
        gap: 15px;
    }
    
    .cart-popup-image {
        width: 100px;
    }
    
    .cart-popup-info h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .cart-popup-summary-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .cart-popup-totals {
        margin-bottom: 20px;
    }
    
    .cart-popup-checkout {
        padding: 18px 20px;
        font-size: 15px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .cart-popup-header {
        padding: 15px 15px 10px;
    }
    
    .cart-popup-left,
    .cart-popup-right {
        padding: 15px;
    }
    
    .cart-popup-product {
        gap: 12px;
    }
    
    .cart-popup-image {
        width: 80px;
    }
    
    .cart-popup-info h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .cart-popup-size,
    .cart-popup-price {
        font-size: 13px;
        margin: 4px 0;
    }
    
    .cart-popup-summary-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .cart-popup-total,
    .cart-popup-total-sum {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .cart-popup-checkout {
        padding: 16px 15px;
        font-size: 14px;
    }
}

/* Mini Cart Widget and Cart Page Price Styling */
.woocommerce-mini-cart .woocommerce-Price-amount,
.woocommerce-cart-form .woocommerce-Price-amount {
    font-weight: bold;
    color: #333;
}

/* Force hide any custom-price-display elements that might be cached */
.custom-price-display {
    display: none !important;
}

/* Ensure no duplicate price elements */
.woocommerce-mini-cart .quantity .woocommerce-Price-amount + .woocommerce-Price-amount {
    display: none !important;
} 