/* LeisureMatch Public CSS */

.lm-wine-card {
    max-width: 760px;
    margin: 0 auto 40px;
    font-family: inherit;
}

.lm-wine-image {
    margin-bottom: 24px;
    text-align: center;
}
.lm-wine-image img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 4px;
}

.lm-wine-name {
    font-size: 1.6em;
    margin: 0 0 12px;
    line-height: 1.2;
}

.lm-wine-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 18px;
    font-size: 0.9em;
    color: #555;
}

.lm-wine-description {
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Buy box */
.lm-buy-box {
    background: #f9f5f0;
    border-left: 4px solid #8b1a1a;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.lm-buy-box-title {
    margin: 0 0 10px;
    font-size: 1.1em;
    color: #8b1a1a;
}
.lm-selling-text {
    margin: 0 0 10px;
    font-style: italic;
    color: #444;
}
.lm-intro-text {
    margin: 0 0 14px;
    color: #555;
    font-size: 0.9em;
}
.lm-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #d9c9b5;
    border-radius: 4px;
    padding: 12px 16px;
}
.lm-price-label { font-size: 0.95em; color: #555; }
.lm-price-amount { font-size: 1.2em; font-weight: 700; color: #8b1a1a; }

/* Notices */
.lm-notice {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95em;
}
.lm-notice-success {
    background: #edf7ed;
    border-left: 4px solid #46b450;
    color: #1e4620;
}
.lm-notice-error {
    background: #fdf2f2;
    border-left: 4px solid #c00;
    color: #7a0000;
}

/* Order box */
.lm-order-box {
    background: #fff;
    border: 1px solid #e0d5c8;
    border-radius: 6px;
    padding: 24px;
    margin-top: 4px;
}
.lm-order-title {
    margin: 0 0 18px;
    font-size: 1.15em;
}

/* Bottle options */
.lm-bottle-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.lm-bottle-option {
    cursor: pointer;
}
.lm-bottle-option input { display: none; }
.lm-bottle-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-width: 90px;
    text-align: center;
}
.lm-bottle-option input:checked + .lm-bottle-label {
    border-color: #8b1a1a;
    background: #fdf8f5;
}
.lm-bottle-label strong { font-size: 1em; }
.lm-bottle-label em { font-size: 0.82em; color: #777; font-style: normal; }

/* Order grid */
.lm-order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.lm-order-field { display: flex; flex-direction: column; gap: 4px; }
.lm-order-field label { font-size: 0.88em; font-weight: 600; color: #444; }
.lm-order-field input,
.lm-order-field textarea,
.lm-order-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: inherit;
    box-sizing: border-box;
}
.lm-order-field input:focus,
.lm-order-field textarea:focus {
    border-color: #8b1a1a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139,26,26,0.1);
}
.lm-field-full  { grid-column: 1 / -1; }
.lm-field-half  { grid-column: span 1; }
.lm-optional    { color: #999; font-weight: normal; }

.lm-order-disclaimer {
    font-size: 0.82em;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.5;
}

.lm-btn-order {
    background: #8b1a1a;
    color: #fff;
    border: none;
    padding: 13px 32px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}
.lm-btn-order:hover { background: #6e1515; }

@media (max-width: 600px) {
    .lm-order-grid { grid-template-columns: 1fr; }
    .lm-bottle-options { gap: 8px; }
    .lm-bottle-label { min-width: 70px; padding: 8px 12px; }
    .lm-price-row { flex-direction: column; gap: 6px; text-align: center; }
}
