/* Product Customization Options */
.product-customization-options {
    margin: 20px 0;
 
 
}

.customization-option {
    margin-bottom: 15px;
}

.swatch-tooltip .swatch-tooltip-text {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    width: 120px;
    bottom: 100%;
    left: 50%;
    margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
    margin-bottom: 10px; /* Space between the tooltip and the swatch */
}

.swatch-tooltip .swatch-tooltip-text::after {
    content: " ";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.5) transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.swatch-tooltip:hover .swatch-tooltip-text {
    visibility: visible;
}

.color-swatch-radio {
    margin-bottom: 12px;
}

.swatches-container {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top:12px;
}

.color-swatch-radio {
    position: relative;
}
.color-swatch-radio input[type="radio"] {
    display: none;
}

.color-swatch-radio input[type="radio"]:checked + label .swatch-check-icon {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.color-swatch-radio input[type="radio"]:hover + label .swatch-span::after,
.color-swatch-radio input[type="radio"]:checked + label .swatch-span::after {
    background:rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
}

.color-swatch-radio .swatch-span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-right: 10px;
    cursor: pointer;
    background-size: cover;
    border: 2px solid #d7d7d7;
    background: rgba(0, 0, 0, 0);
}

.color-swatch-radio .swatch-span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid #d7d7d7;
    background:rgba(0, 0, 0, 0.0) !important;
    transition: all 0.3s ease;
}

.color-swatch-radio .swatch-check-icon {
    opacity:0;
    transition:opacity 0.3s ease;
    transform:scale(0.8);
    z-index: 4;
}

.color-swatch-radio:hover .swatch-check-icon {
    opacity:1;
    transition: opacity 0.3s ease;
    transform:scale(0.8);
}

.customization-option:last-child {
    margin-bottom: 0;
}

.customization-option label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.customization-option select {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Admin tables */
.widefat {
    margin-top: 15px;
    margin-bottom: 30px;
}



/* Order Summary Styles */
.plugdesing-custom-order-summary {
    overflow: hidden;
    position: relative;
}

.plugdesing-custom-order-summary.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.plugdesing-custom-order-summary.loading::after {
    content: 'Aktualizuji...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    font-weight: 600;
    color: #666;
}

.order-summary-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 0px;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding:20px 0px;
}

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

.order-item.component-item {
    background: #fafafa;
    padding: 15px 20px 15px 40px;
    border-bottom: 1px solid #f0f0f0;
}

.product-info {
    flex: 1;
    margin-right: 20px;
}

.product-thumbnail {
    height: 64px;
    width: 64px;
    margin-right: 15px;
    border-radius:12px;
    border:1px solid #e0e0e0;
    object-fit: contain;
    background:#F9F9FA;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.product-name a {
    color: #333 !important;
    text-decoration: none;
}

.product-name a:hover {
    color: #e28937 !important;
    text-decoration: none;
}

.component-item .product-name {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.quantity {
    font-weight: normal;
    color: #666;
    margin-left: 5px;
}

.config-option {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    text-transform:lowercase;
}

.config-option strong {
    color: #333;
}

.component-details {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.component-note {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.product-total {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: right;
    min-width: 80px;
}

.component-item .product-total {
    font-size: 14px;
    color: #666;
}

.order-summary-totals {
    padding: 20px 0px;
    border-top: 1px solid #e0e0e0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.total-row:last-child {
    margin-bottom: 0;
}

.total-row.grand-total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-top: 12px;
    border-top: 2px solid #ddd;
    margin-top: 12px;
    margin-bottom: 0;
}

.total-label {
    color: #666;
}

.total-value {
    font-weight: 600;
    color: #333;
}

.grand-total .total-label,
.grand-total .total-value {
    color: #333;
}

.including-tax-note {
    font-size: 12px;
    color: #4e4e4e;
    margin-top: 4px;
    text-align: right;
}

.including-tax-note span bdi{
    font-size: 12px;
    color: #4e4e4e !important;
    margin-top: 4px;
    text-align: right;
}

/* Shipping Options Styles */
.plugdesing-shipping-switcher {
    padding: 24px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #d1d5db;
}
.shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shipping-method label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.shipping-method input[type="radio"] {
    transform:translateY(2px);
}
.shipping-method-name {
    flex-grow: 1;
    margin-left: 0px;
}
.shipping-method-cost {
    font-weight: bold;
}
.shipping-method-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}