@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800;900&display=swap');

.gold-price-container {
    font-family: 'Prompt', Arial, sans-serif;
    max-width: 1000px;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.gold-price-container .gold-price-widget {
    display: flex;
    min-height: 320px;
}

.gold-price-container .left-panel {
    flex: 1.3;
    /* background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #2563eb 50%, #3b82f6 75%, #1e3a8a 100%); */
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.gold-price-container .left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="50%" style="stop-color:rgba(255,255,255,0.05);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /></linearGradient></defs><rect width="400" height="200" fill="url(%23grad1)"/><path d="M0,100 Q100,50 200,100 T400,100 L400,200 L0,200 Z" fill="rgba(255,255,255,0.03)"/><path d="M0,80 Q80,30 160,80 T320,80 L320,200 L0,200 Z" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="150" r="30" fill="rgba(255,255,255,0.05)"/><circle cx="350" cy="50" r="20" fill="rgba(255,255,255,0.04)"/><rect x="100" y="120" width="40" height="60" fill="rgba(255,255,255,0.03)" rx="5"/><rect x="260" y="80" width="30" height="40" fill="rgba(255,255,255,0.02)" rx="3"/></svg>') no-repeat center; */
    background: url(../../../../../wp-content/plugins/gold-price-v2/assets/g-bg3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    /* opacity: 0.8; */
    background-attachment: scroll; /* เพิ่มบรรทัดนี้ */
    background-position: center center; /* เพิ่มบรรทัดนี้ */
}

.gold-price-container .left-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 30%),
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.02) 50%, transparent 70%);
}

.gold-price-container .chart-background {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gold-price-container .header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.gold-price-container .purity-badge {
    color: white;
    text-align: left;
}

.gold-price-container .purity-text {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.gold-price-container .purity-main {
    display: block;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.gold-price-container .bowins-logo {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    text-shadow: none;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.gold-price-container .date-time {
    text-align: right;
    color: white;
}

.gold-price-container .date-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.gold-price-container .time-info {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.gold-price-container .price-indicator {
    text-align: center;
    margin: 15px 0;
    color: white;
}

.gold-price-container .triangle-up {
    font-size: 32px;
    color: #22c55e;
    margin-right: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.5));
}

.gold-price-container .status-text {
    font-size: 36px;
    font-weight: 900;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.gold-price-container .price-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.gold-price-container .price-boxes {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.gold-price-container .price-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gold-price-container .price-header {
    padding: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border-radius: 8px 8px 0 0;
}

.gold-price-container .buy-header {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
}

.gold-price-container .sell-header {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #16a34a 100%);
}

.gold-price-container .price-value-box {
    padding: 20px 12px;
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
    border-top: none;
}

.gold-price-container .buy-value {
    color: #dc2626;
}

.gold-price-container .sell-value {
    color: #16a34a;
}

.gold-price-container .price-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.gold-price-container .buy-box {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
    border-color: rgba(185, 28, 28, 0.6);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.gold-price-container .sell-box {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #16a34a 100%);
    border-color: rgba(21, 128, 61, 0.6);
    position: relative;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.gold-price-container .price-label {
    font-size: 16px;
    margin-bottom: 0;
    opacity: 0.95;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 15px;
    border-radius: 6px 6px 0 0;
}

.gold-price-container .price-value {
    font-size: 42px;
    font-weight: 700;
    margin: 8px 0 0 0;
    letter-spacing: 1px;
    background: white;
    padding: 15px;
    border-radius: 0 0 6px 6px;
    text-shadow: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.gold-price-container .buy-box .price-value {
    color: #dc2626;
}

.gold-price-container .sell-box .price-value {
    color: #16a34a;
}

.gold-price-container .average-price-standalone {

    background: rgba(15, 23, 42, 0.95);
    padding: 6px 12px;
    border-radius: 8px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    color: white;
    width: calc(50% - 30px);
    margin-left: auto;
    margin-top: -1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top:0.65rem;
}

.gold-price-container .average-label {
    font-size: 10px;
    opacity: 0.9;
    display: block;
    margin-bottom: 3px;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.8);
}

.gold-price-container .average-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    filter: drop-shadow(0 0 2px rgba(34, 197, 94, 0.3));
}

.gold-price-container .right-panel {
    flex: 1;
    background: #f8fafc;
    padding: 20px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.gold-price-container .date-time-right {
    text-align: right;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.gold-price-container .date-time-center {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}
.gold-price-container .date-display {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.gold-price-container .time-display {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

.gold-price-container .price-list {
    margin-top: 20px;
}

.gold-price-container .price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.gold-price-container .item-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.gold-price-container .item-icon {
    font-size: 36px;
    margin-right: 16px;
    text-align: center;
}

.gold-price-container .item-details {
    flex: 1;
}

.gold-price-container .item-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.gold-price-container .item-vat {
    font-size: 14px;
    color: #64748b;
}

.gold-price-container .item-prices {
    text-align: right;
}

.gold-price-container .sell-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
}

.gold-price-container .item-price {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 4px;
    margin-right: 0;
}

.gold-price-container .item-price-baht {
    font-size: 15px;
    font-weight: 600;
    color: #22c55e;
}

.gold-price-container .separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
    margin: 20px 0;
}

.gold-price-container .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    padding-bottom: 0;
    /* border-bottom: 2px solid #e2e8f0; */
    /* margin-bottom: 15px; */
}

.gold-price-container .design-icon {
    font-size: 20px;
}

.gold-price-container .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
    margin-left: 10px;
}

.gold-price-container .section-type {
    font-size: 12px;
    color: #64748b;
}

.gold-price-container .design-items {
    space-y: 12px;
}

.gold-price-container .design-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.gold-price-container .design-item:last-child {
    border-bottom: none;
}

.gold-price-container .design-icon-small {
    font-size: 18px;
    /* margin-right: 16px; */
    width: 48px;
    text-align: left;
}

.gold-price-container .design-weight {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    margin-left: 8px;
}

.gold-price-container .design-vat {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.gold-price-container .design-price {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    text-align: right;
}

.gold-price-container .disclaimer {
    padding: 12px 20px;
    background: #f1f5f9;
    font-size: 11px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .gold-price-container .gold-price-widget {
        flex-direction: column;
    }
    
    .gold-price-container .left-panel {
        min-height: 280px;
    }
    
    .gold-price-container .header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gold-price-container .date-time {
        text-align: left;
    }
    
    .gold-price-container .price-boxes {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .gold-price-container .average-price {
        position: static;
        transform: none;
        margin-top: 15px;
    }
}


.gold-price-container .error {
    color: #ef4444;
    text-align: center;
    padding: 20px;
    font-weight: 500;
}

.gold-price-container .fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.gold-price-container .gold-icon {
    width: 40px !important;
}

@media (min-width: 768px) {
    .gold-price-container .gold-price-widget {
        max-height: 552px !important;
    }
    .gold-price-container .design-items {
        overflow-y: scroll !important;
        max-height: 336px !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    .gold-price-container .design-items::-webkit-scrollbar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .gold-price-container .date-time-center {
        text-align: center;
        margin-bottom: 5px;
        padding-bottom: 5px;
    }
    .gold-price-container .price-list {
        margin-top: 0;
    }
    .gold-price-container .price-boxes {
        flex-direction: row;
    }
    .gold-price-container .purity-badge {
        text-align: center;
    }
    .gold-price-container .header-info {
        text-align: center;
        align-items: center;
        gap: 3px;

    }
    .gold-price-container .purity-text {
        font-size: 26px;
        padding-bottom: 12px;
    }
    .gold-price-container .purity-main {
        font-size: 38px;
        padding-bottom: 8px;
    }
    .gold-price-container .date-time {
        text-align: center;
    }
    .gold-price-container .date-badge {
        font-size: 18px;
        padding-bottom: 12px;
    }
    .gold-price-container .time-info {
        font-size: 16px;
        padding-bottom: 12px;
    }
}

@media (max-width: 500px) {
    /* .gold-price-container .purity-text {
        font-size: 18px;
    }
    .gold-price-container .purity-main {
        font-size: 28px;
    } */
    .gold-price-container .price-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        flex-shrink: 1;
        min-width: 0;
    }
    .gold-price-container .price-header {
        font-size: 14px;
        padding: 8px 8px;
    }
    .gold-price-container .price-value-box {
        font-size: 28px;
        padding: 8px 8px;
    }
}