/* WooCommerce Gift Cards Premium - pirkėjo pusės stiliai.
   Pilnai pritaikyta mobiliesiems. */

.wcgc-form-wrap {
    margin: 0 0 24px 0;
}

/* --- Tiesioginė peržiūra --- */
.wcgc-preview {
    max-width: 420px;
    margin: 0 0 20px 0;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.wcgc-preview-image {
    width: 100%;
    padding-top: 50%;
    background-size: cover;
    background-position: center;
    background-color: #f3f3f3;
}

.wcgc-preview-body {
    padding: 18px;
    text-align: center;
}

.wcgc-preview-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 10px;
}

.wcgc-preview-recipient {
    font-size: 16px;
    color: #333333;
    margin-bottom: 6px;
}

.wcgc-preview-amount-label {
    font-size: 12px;
    color: #888888;
}

.wcgc-preview-amount {
    font-size: 34px;
    font-weight: 700;
    margin: 2px 0 10px;
    line-height: 1.2;
}

.wcgc-preview-message {
    font-size: 14px;
    font-style: italic;
    color: #555555;
    white-space: pre-line;
    word-break: break-word;
    margin-bottom: 8px;
}

.wcgc-preview-sender {
    font-size: 13px;
    color: #888888;
    margin-bottom: 4px;
}

.wcgc-preview-recipient[hidden],
.wcgc-preview-message[hidden],
.wcgc-preview-sender[hidden] {
    display: none;
}

.wcgc-preview-code {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 14px;
    border: 2px dashed #bbbbbb;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 2px;
    color: #999999;
}

/* Peržiūra po forma */
.wcgc-form + .wcgc-preview,
.wcgc-form + .wcgc-preview-trigger {
    margin: 20px 0 0 0;
}

/* --- Peržiūros iššokantis langas --- */
.wcgc-preview-trigger {
    margin: 0 0 20px 0;
}

.wcgc-preview-open-link {
    display: inline-block;
    text-decoration: underline;
    cursor: pointer;
}

.wcgc-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.wcgc-modal-overlay[hidden] {
    display: none;
}

.wcgc-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 14px;
}

.wcgc-modal .wcgc-preview {
    margin: 0;
    max-width: none;
}

.wcgc-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #333333;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

body.wcgc-modal-open {
    overflow: hidden;
}

/* --- Laukai --- */
.wcgc-field {
    margin-bottom: 18px;
}

.wcgc-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.wcgc-hint {
    font-size: 12px;
    color: #888888;
    margin: 4px 0 0 0;
}

.wcgc-hint-inline {
    font-weight: 400;
}

.wcgc-message-hint {
    max-width: 420px;
    text-align: right;
}

.wcgc-form input[type="text"],
.wcgc-form input[type="email"],
.wcgc-form input[type="number"],
.wcgc-form input[type="date"],
.wcgc-form textarea,
.wcgc-form select {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    font-size: inherit;
    line-height: 1.4;
}

.wcgc-form textarea {
    resize: vertical;
}

.wcgc-form input[type="file"] {
    max-width: 420px;
    font-size: 14px;
}

.wcgc-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 560px;
}

@media (max-width: 600px) {
    .wcgc-two-cols {
        grid-template-columns: 1fr;
    }
}

/* --- Sumos mygtukai --- */
.wcgc-amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wcgc-amount-btn {
    position: relative;
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #d5d5d5;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wcgc-amount-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wcgc-amount-btn.selected {
    border-color: currentColor;
    background: rgba(0, 0, 0, 0.04);
}

.wcgc-custom-amount {
    margin-top: 10px;
}

/* Laisvai įvedama suma - vienodo dydžio ir stiliaus su sumų mygtukais */
.wcgc-form .wcgc-custom-amount input[type="number"] {
    max-width: 200px;
    padding: 10px 14px;
    border-width: 2px;
    font-weight: 600;
}

/* --- Dizainų galerija --- */
.wcgc-design-category {
    margin-bottom: 10px;
}

.wcgc-design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-width: 560px;
}

.wcgc-design-item {
    position: relative;
    display: block;
    border: 3px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
}

.wcgc-design-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wcgc-design-item img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
}

.wcgc-design-item.selected {
    border-color: #333333;
}

/* --- Paveikslėlio įkėlimas --- */
.wcgc-upload-status {
    font-size: 13px;
    margin-top: 6px;
}

.wcgc-upload-status.error {
    color: #b32d2e;
}

.wcgc-upload-status.ok {
    color: #1a7f37;
}

.wcgc-remove-image {
    margin-top: 6px;
    background: none;
    border: none;
    color: #b32d2e;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    text-decoration: underline;
}

/* --- Sąlygos ir veiksmai --- */
.wcgc-terms {
    font-size: 13px;
    color: #777777;
    border-left: 3px solid #e0e0e0;
    padding-left: 12px;
    margin-bottom: 18px;
}

.wcgc-terms p {
    margin: 2px 0;
}

.wcgc-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Likučio patikra --- */
.wcgc-balance-checker {
    max-width: 460px;
    padding: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
}

.wcgc-balance-title {
    margin: 0 0 14px 0;
}

.wcgc-balance-form {
    display: flex;
    gap: 8px;
}

.wcgc-balance-form .wcgc-balance-code {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
}

.wcgc-balance-result {
    margin-top: 14px;
}

.wcgc-balance-amount {
    font-size: 24px;
    margin: 0 0 4px 0;
}

.wcgc-balance-error {
    color: #b32d2e;
}

.wcgc-balance-usage {
    font-size: 13px;
    color: #777777;
}

@media (max-width: 480px) {
    .wcgc-balance-form {
        flex-direction: column;
    }
}

/* --- Užsakymo puslapiai --- */
.wcgc-order-card code {
    font-size: 15px;
    letter-spacing: 1px;
}

.wcgc-account-actions .button {
    margin-right: 6px;
    margin-bottom: 4px;
}
