/* Gold Price Tables v2.1 */

.gpt-wrap {
    --gpt-c:       #c49a2a;
    --gpt-c-light: #fdf8ee;
    --gpt-c-dark:  #8a6a10;
    --gpt-border:  #e4d89e;
    --gpt-radius:  10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #1e1e1e;
    margin: 1.5rem 0;
}

/* Grid */
.gpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    grid-auto-rows: 1fr;
    gap: 22px;
    align-items: stretch;
}

/* Card */
.gpt-card {
    background: #fff;
    border: 1px solid #e0dbd0;
    border-radius: var(--gpt-radius);
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card title bar */
.gpt-card-title {
    background: var(--gpt-c);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 13px 18px;
    text-align: center;
    text-transform: uppercase;
}

/* Separator between buy/sell */
.gpt-sep {
    height: 6px;
    background: var(--gpt-c-light);
    border-top: 1px solid var(--gpt-border);
    border-bottom: 1px solid var(--gpt-border);
}

/* Table */
.gpt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gpt-table thead tr {
    background: var(--gpt-c-light);
    border-bottom: 2px solid var(--gpt-border);
}

.gpt-table thead th {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gpt-c-dark);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gpt-table tbody tr {
    border-bottom: 1px solid #f0ece0;
    transition: background 0.12s;
}

.gpt-table tbody tr:last-child {
    border-bottom: none;
}

.gpt-table tbody tr:not(.gpt-calc-row):not(.gpt-result-row):hover {
    background: #fdfaf2;
}

.gpt-table tbody td {
    padding: 10px 16px;
    vertical-align: middle;
}

.gpt-r { text-align: right; }

.gpt-price {
    font-weight: 700;
    font-size: 15px;
    color: #111;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Calc row */
.gpt-calc-row {
    background: var(--gpt-c-light) !important;
    border-top: 1px solid var(--gpt-border) !important;
}

.gpt-calc-row td {
    padding: 10px 16px !important;
}

.gpt-calc-label {
    font-size: 13px;
    color: var(--gpt-c-dark);
    font-weight: 600;
}

/* calc-full: label αριστερά, input+button δεξιά */
.gpt-calc-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* Inline calc (qty input + button) */
.gpt-inline-calc {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Gold/silver: select + inline-calc stacked */
.gpt-calc-gold-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Input */
.gpt-qty {
    width: 90px;
    padding: 7px 8px;
    border: 1px solid var(--gpt-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: #222;
    background: #fff;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gpt-qty:focus {
    outline: none;
    border-color: var(--gpt-c);
    box-shadow: 0 0 0 3px rgba(196,154,42,0.18);
}

/* Select */
.gpt-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gpt-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: #222;
    background: #fff;
    transition: border-color 0.15s;
}

.gpt-select:focus {
    outline: none;
    border-color: var(--gpt-c);
    box-shadow: 0 0 0 3px rgba(196,154,42,0.18);
}

/* Button */
.gpt-btn {
    background: var(--gpt-c);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.15s, transform 0.1s;
}

.gpt-btn:hover  { filter: brightness(0.88); }
.gpt-btn:active { transform: scale(0.97); }

/* Result row */
.gpt-result-row td {
    padding: 0 !important;
}

.gpt-result-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff8e6;
    border-top: 2px solid var(--gpt-c);
    padding: 12px 16px;
}

.gpt-result-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gpt-c-dark);
}

.gpt-result-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--gpt-c);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 700px) {
    .gpt-grid { grid-template-columns: 1fr; gap: 16px; }
    .gpt-result-val { font-size: 18px; }
}

@media (max-width: 420px) {
    .gpt-inline-calc { flex-wrap: wrap; justify-content: flex-start; }
    .gpt-qty { width: 90px; }
    .gpt-btn { width: 100%; justify-content: center; }
}