/* WIDGET BASE */
.dmp-widget {
    font-family: 'Roboto', sans-serif;
    max-width: 420px;
    margin: 10px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #F1DF89;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* HEADER */
.dmp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dmp-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.dmp-date {
    font-size: 0.75rem;
    color: #6b7280;
}

/* METAL TABS */
.dmp-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 12px;
}

.dmp-tab {
    padding: 5px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    background: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    white-space: nowrap;
}

.dmp-tab.active {
    background: #F1DF89;
    color: #000000;
}

/* LOCATION */
.dmp-controls {
    margin-bottom: 10px;
}

.dmp-controls select {
    width: 100%;
    padding: 8px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    color: #374151;
    background-color: #ffffff;
}

/* PRICE CARDS GRID */
.dmp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

/* CARD */
.dmp-card {
    background: #ffffff;
    border: 1px solid #F1DF89;
    border-radius: 8px;
    padding: 5px 4px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TITLE */
.dmp-card h4 {
    margin: 0 0 2px; /* Reduced bottom margin to sit closer to date */
    font-size: 0.7rem;
    font-weight: 500;
    color: #4b5563;
    text-transform: none;
    letter-spacing: normal;
}

/* NEW: DATE INSIDE CARD */
/* .dmp-card-date {
    font-size: 0.65rem;
    color: #9ca3af; 
    margin-bottom: 8px; 
    font-weight: 400;
} */

/* PRICE */
.dmp-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px; /* Reduced slightly */
}

/* CHANGE */
.dmp-change {
    font-size: 0.7rem;
    font-weight: 500;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}




.dmp-tabs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dmp-controls-inline {
    flex-shrink: 0;
	margin-top: -10px;
}

.dmp-controls-inline select {
    min-width: 110px;
    padding: 6px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

/* Hide old .dmp-controls if still used elsewhere */
.dmp-controls { display: none; }
