/* Frontend CSS for Gift Voucher Plugin Update */
.gv-app-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a3028;
    background-color: #fefaf1;
    padding: 40px 20px;
    border-radius: 12px;
    box-sizing: border-box;
}

.gv-app-container * {
    box-sizing: border-box;
}

.gv-header {
    text-align: center;
    margin-bottom: 40px;
}
.gv-header h2 {
    font-size: 36px;
    color: #1a3028;
    font-family: "Georgia", serif;
    font-weight: bold;
    margin-bottom: 5px;
}
.gv-header p {
    color: #c49f73;
    font-style: italic;
    font-size: 18px;
    margin: 0;
}

.gv-layout {
    display: flex;
    flex-wrap: nowrap; /* strictly columns on desktop */
    gap: 40px;
    width: 100%;
    margin: 0;
}

.gv-col-left {
    flex: 1 1 50%;
}
.gv-col-right {
    flex: 1 1 50%;
}

.gv-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e1ded5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.gv-card-title, .gv-preview-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a3028;
    margin-top: 0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gv-form-section {
    margin-bottom: 20px;
}

.gv-form-section label, .gv-col label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #33443e;
}

.gv-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.gv-preset-btn {
    flex: 1;
    min-width: 60px;
    padding: 10px;
    border-radius: 30px;
    border: 1px solid #e1ded5;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    color: #33443e;
    transition: all 0.2s;
}
.gv-preset-btn:hover {
    border-color: #1a3028;
}
.gv-preset-btn.active {
    background: #1a3028;
    color: #fff;
    border-color: #1a3028;
}

.gv-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1ded5;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}
.gv-input:focus {
    border-color: #c49f73;
}

.gv-row {
    display: flex;
    gap: 15px;
}
.gv-col {
    flex: 1;
}
.gv-mt {
    margin-top: 20px;
}

.gv-checkout-section {
    margin-top: 30px;
    text-align: center;
}
.gv-secure-text {
    font-size: 12px;
    color: #777;
    margin-top: 15px;
}

/* New Voucher UI */
.gv-preview-container {
    overflow-x: auto;
    padding-bottom: 20px;
}

.gv-voucher-new {
    width: 100%;
    max-width: 500px;
    background-color: #fdfaf5;
    border: 2px solid #c49f73;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    overflow: hidden;
}

.gv-voucher-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background-color: #e5e3d7;
    border-bottom-left-radius: 100%;
    opacity: 0.5;
}

.gv-voucher-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}
.gv-v-title {
    font-family: "Georgia", serif;
    font-size: 28px !important;
    letter-spacing: 4px;
    color: #1a3028;
    margin: 0 0 5px 0 !important;
    font-weight: normal !important;
}
.gv-v-subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    color: #c49f73;
    font-weight: 600;
}

.gv-voucher-body {
    position: relative;
    z-index: 1;
}

.gv-v-row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
}
.gv-v-label {
    font-size: 12px;
    font-weight: bold;
    color: #c49f73;
    width: 60px;
}
.gv-v-line {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    font-family: "Georgia", serif;
    font-style: italic;
    color: #1a3028;
    padding-bottom: 2px;
    font-size: 16px;
    min-height: 22px;
}

.gv-v-row-amount {
    display: flex;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
}
.gv-v-amount {
    font-size: 40px;
    font-weight: 700;
    color: #1a3028;
    font-family: "Georgia", serif;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.gv-v-message {
    font-family: "Georgia", serif;
    font-style: italic;
    font-size: 14px;
    color: #555;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 20px;
    min-height: 40px;
}

.gv-v-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.gv-v-qr {
    background: #e1ded5;
    font-size: 10px;
    padding: 5px;
    border-radius: 4px;
    color: #777;
}

@media (max-width: 900px) {
    .gv-layout {
        flex-wrap: wrap;
        flex-direction: column;
    }
    .gv-col-left, .gv-col-right {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .gv-row {
        flex-direction: column;
        gap: 20px;
    }
    .gv-voucher-new {
        padding: 20px;
    }
}
