/* Gold Price Ticker Styles */
.gpt-ticker-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-bottom: 2px solid #E6D5A9; /* Goldish border */
    padding: 10px 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Toggle Switch */
.gpt-controls {
    display: flex;
    align-items: center;
}
.gpt-toggle-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #E6D5A9;
    padding: 4px 8px;
    border-radius: 20px;
    background-color: #fff;
}
.gpt-toggle-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin: 0 5px;
    cursor: pointer;
}
.gpt-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    margin: 0;
}
.gpt-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.gpt-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.gpt-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}
input:checked + .gpt-slider {
    background-color: #BF9B30; /* Gold color */
}
input:focus + .gpt-slider {
    box-shadow: 0 0 1px #BF9B30;
}
input:checked + .gpt-slider:before {
    transform: translateX(16px);
}
.gpt-slider.round {
    border-radius: 34px;
}
.gpt-slider.round:before {
    border-radius: 50%;
}

/* Prices */
.gpt-prices {
    display: flex;
    gap: 30px;
    flex-grow: 1;
    justify-content: center;
}
.gpt-price-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 1px solid #E6D5A9;
    padding-left: 15px;
}
.gpt-price-item:first-child {
    border-left: none;
}
.gpt-metal-name {
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 2px;
}
.gpt-price-val {
    font-size: 13px;
    color: #333;
    display: none; /* Hidden by default controlled by container class */
}
/* Visibility Logic */
.gpt-ticker-container.show-kg .gpt-val-kg { display: block; }
.gpt-ticker-container.show-oz .gpt-val-oz { display: block; }

.gpt-up { color: green; }
.gpt-down { color: red; }
.gpt-trend-icon { font-size: 10px; margin-left: 3px; }

/* Refresh Section */
.gpt-refresh {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-left: 1px solid #E6D5A9;
    padding-left: 15px;
}
.gpt-refresh-label {
    font-size: 12px;
    font-weight: 800;
    color: #BF9B30;
    text-transform: uppercase;
}
#gpt-timer {
    font-size: 13px;
    color: #BF9B30;
    font-weight: 600;
}
#gpt-refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #BF9B30;
    padding: 0;
    display: none; /* Could be shown instead of timer or next to it */
}

/* Responsive */
@media (max-width: 768px) {
    .gpt-prices {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .gpt-price-item {
        border-left: none;
        align-items: center;
        padding-left: 0;
    }
    .gpt-ticker-container {
        flex-direction: column;
        align-items: center;
    }
    .gpt-refresh {
        border-left: none;
        align-items: center;
        margin-top: 10px;
    }
}
