
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 16px;
}

.p-1 {
    padding: 4px;
}

.p-2 {
    padding: 8px;
}

.p-3 {
    padding: 16px;
}

.p-4 {
    padding: 24px;
}

.p-5 {
    padding: 32px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* price box */

/* style 1 & 2 */
.goldpress-price-box.gp-price-box-style-1,
.goldpress-price-box.gp-price-box-style-2 {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    padding: 25px 30px;
    direction: rtl;
    width: 100%;
}

.goldpress-price-box.gp-price-box-style-1 .gp-bg-icon,
.goldpress-price-box.gp-price-box-style-2 .gp-bg-icon {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goldpress-price-box.gp-price-box-style-1 .gp-box-inner,
.goldpress-price-box.gp-price-box-style-2 .gp-box-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.goldpress-price-box.gp-price-box-style-1 .gp-right-col,
.goldpress-price-box.gp-price-box-style-2 .gp-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.goldpress-price-box.gp-price-box-style-1 .gp-box-price,
.goldpress-price-box.gp-price-box-style-2 .gp-box-price {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.goldpress-price-box.gp-price-box-style-1 .gp-box-title,
.goldpress-price-box.gp-price-box-style-2 .gp-box-title {
    font-size: 16px;
    font-weight: normal;
    margin-top: 5px;
}

.goldpress-price-box.gp-price-box-style-1 .gp-left-col,
.goldpress-price-box.gp-price-box-style-2 .gp-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
}

.goldpress-price-box.gp-price-box-style-1 .gp-box-update,
.goldpress-price-box.gp-price-box-style-2 .gp-box-update {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

.goldpress-price-box.gp-price-box-style-1 .gp-update-label,
.goldpress-price-box.gp-price-box-style-2 .gp-update-label {
    margin-bottom: 3px;
    opacity: 0.9;
}

/*style 3*/

.goldpress-price-box.gp-price-box-style-3 {
    direction: rtl;
    background-color: #dcecfc;
    border-radius: 12px;
    border: 1px solid transparent;
}

.goldpress-price-box.gp-price-box-style-3 .live-indicator {
    width: 10px;
    height: 10px;
    background-color: #2b6cb0;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
    margin-left: 8px;
}

.gp-price-box-rtl-mode.goldpress-price-box.gp-price-box-style-3 .live-indicator {
    margin-right: 8px;
    margin-left: 0;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.goldpress-price-box.gp-price-box-style-3 .change-badge {
    background-color: #fff0f0;
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: bold;
}

.goldpress-price-box.gp-price-box-style-3 .change-badge.positive {
    background-color: #e6f4ea;
    color: #1e8e3e;
}

.goldpress-price-box.gp-price-box-style-3 .currency {
    font-size: 17px;
    color: #222;
    font-weight: 700;
}

#slv-price {
    font-size: 1.8rem;
    color: #222;
}

#slv-datetime {
    font-size: 12px;
    color: #6c757d;
    margin-left: 8px;
}

.gp-price-box-rtl-mode #slv-datetime {
    margin-left: 0;
    margin-right: 8px;
}

.goldpress-price-box.gp-price-box-style-3 .buy-btn {
    background-color: #2b6cb0;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.goldpress-price-box.gp-price-box-style-3 .buy-btn:hover {
    color: #2b6cb0;
    background-color: #ffffff;
}


/*defaults*/

.goldpress-price-box.gp-price-box-style-1 {
    background-color: #111111;
}

.goldpress-price-box.gp-price-box-style-2 {
    background-color: #f8f8f8;
}

.goldpress-price-box.gp-price-box-style-1 .gp-box-price,
.goldpress-price-box.gp-price-box-style-1 .gp-box-title,
.goldpress-price-box.gp-price-box-style-1 .gp-box-update {
    color: #ffffff;
}

.goldpress-price-box.gp-price-box-style-2 .gp-box-price,
.goldpress-price-box.gp-price-box-style-2 .gp-box-title,
.goldpress-price-box.gp-price-box-style-2 .gp-box-update {
    color: #111111;
}


/* chart */
.goldpress-chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
}

.goldpress-inline-price {
    font-weight: bold;
    color: #eab308;
}

/* ===== Single-product formula breakdown card ===== */
.goldpress-formula-card {
    position: relative;
    margin: 18px 0 22px;
    background: linear-gradient(135deg, #fffefa 0%, #fff8e1 100%);
    border: 1px solid rgba(234, 179, 8, .35);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(120, 90, 0, .07), 0 1px 2px rgba(120, 90, 0, .04);
    overflow: hidden;
    font-family: inherit;
}

.goldpress-formula-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #eab308 0%, #f59e0b 100%);
}

.goldpress-formula-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 14px 22px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #4a3a09;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
    -webkit-appearance: none;
    appearance: none;
}

.goldpress-formula-toggle:hover {
    background: rgba(234, 179, 8, .06);
}

.goldpress-formula-toggle:focus {
    outline: 2px solid #eab308;
    outline-offset: -2px;
}

.goldpress-formula-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(234, 179, 8, .15);
    color: #b45309;
    flex-shrink: 0;
}

.goldpress-formula-title {
    flex: 1;
}

.goldpress-formula-chevron {
    color: #b45309;
    font-size: 18px;
    transition: transform .2s ease;
    flex-shrink: 0;
}

.goldpress-formula-card.is-collapsed .goldpress-formula-chevron {
    transform: rotate(-90deg);
}

.goldpress-formula-card.is-collapsed .goldpress-formula-body {
    display: none;
}

.goldpress-formula-body {
    padding: 4px 22px 18px 26px;
}

.goldpress-formula-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: rgba(234, 179, 8, .08);
    border-radius: 8px;
    font-size: 13px;
    color: #4a3a09;
}

.goldpress-formula-meta strong {
    color: #1f2937;
    font-weight: 600;
}

.goldpress-formula-mode {
    margin-left: auto;
    padding: 2px 10px;
    background: #b45309;
    color: #fffbe6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.goldpress-formula-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(234, 179, 8, .25);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.goldpress-formula-rows li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(234, 179, 8, .12);
    font-size: 14px;
    color: #374151;
}

.goldpress-formula-rows li:last-child {
    border-bottom: 0;
}

.goldpress-formula-label {
    font-weight: 500;
}

.goldpress-formula-hint {
    flex: 1;
    color: #9ca3af;
    font-size: 12px;
    margin-left: 8px;
}

.goldpress-formula-amount {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    color: #1f2937;
    white-space: nowrap;
}

.goldpress-formula-amount em {
    color: #6b7280;
    font-style: normal;
    font-size: .85em;
    margin-left: 2px;
}

.goldpress-formula-total {
    background: linear-gradient(90deg, #fef9e3 0%, #fef3c7 100%);
    border-top: 2px solid rgba(234, 179, 8, .4) !important;
    font-size: 16px !important;
    font-weight: 700;
}

.goldpress-formula-total .goldpress-formula-label {
    color: #4a3a09;
    font-weight: 700;
}

.goldpress-formula-total .goldpress-formula-amount {
    color: #b45309;
    font-weight: 700;
    font-size: 17px;
}

.goldpress-formula-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* RTL support */
.rtl .goldpress-formula-card::before {
    left: auto;
    right: 0;
}

.rtl .goldpress-formula-toggle {
    padding-left: 18px;
    padding-right: 22px;
    text-align: right;
}

.rtl .goldpress-formula-body {
    padding-left: 26px;
    padding-right: 22px;
}

.rtl .goldpress-formula-mode {
    margin-left: 0;
    margin-right: auto;
}

.rtl .goldpress-formula-amount em {
    margin-left: 0;
    margin-right: 2px;
}

.rtl .goldpress-formula-hint {
    margin-left: 0;
    margin-right: 8px;
}

@media (max-width: 480px) {
    .goldpress-formula-meta {
        font-size: 12px;
    }
    .goldpress-formula-rows li {
        font-size: 13px;
        padding: 8px 12px;
    }
    .goldpress-formula-total .goldpress-formula-amount {
        font-size: 15px;
    }
    .goldpress-formula-hint {
        display: none;
    }
}