/**
 * GiftRocketSure - Frontend Public Stylesheet
 * Premium, Beautiful & Modern Aesthetic
 */

:root {
  --gr-primary: #7549c6;
  --gr-primary-hover: #6136b0;
  --gr-primary-light: #f4efff;
  --gr-border-color: #e2e8f0;
  --gr-text-main: #1e293b;
  --gr-text-muted: #64748b;
  --gr-bg-card: #ffffff;
  --gr-bg-subtle: #f8fafc;
  
  /* Modern soft radiuses */
  --gr-radius-sm: 8px;
  --gr-radius-md: 12px;
  --gr-radius-lg: 16px;
  
  /* Refined, elegant shadows */
  --gr-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.04);
  --gr-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
  --gr-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.08), 0 6px 15px rgba(0, 0, 0, 0.04);
  --gr-shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.giftrocketsure-wrapper {
  max-width: 1050px;
  margin: 40px auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gr-text-main);
  box-sizing: border-box;
}

.giftrocketsure-wrapper *,
.giftrocketsure-wrapper *::before,
.giftrocketsure-wrapper *::after {
  box-sizing: border-box;
}

/* Accordion Container */
.gr-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.gr-accordion-item {
  border: 1px solid var(--gr-border-color);
  border-radius: var(--gr-radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--gr-bg-card);
  box-shadow: var(--gr-shadow-sm);
}

/* Collapsed Header */
.gr-accordion-header {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--gr-bg-card);
  color: #334155;
  user-select: none;
  transition: all 0.2s ease;
}

.gr-accordion-header:hover {
  background-color: #fcfcfd;
}

.gr-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  flex-shrink: 0;
  vertical-align: middle;
}

.gr-accordion-icon svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.gr-accordion-item.is-active .gr-accordion-icon svg {
  transform: rotate(90deg);
}

/* Expanded State */
.gr-accordion-item.is-active {
  border: 1px solid var(--gr-primary);
  box-shadow: var(--gr-shadow-md);
  transform: translateY(-2px);
}

.gr-accordion-item.is-active > .gr-accordion-header {
  background-color: var(--gr-primary);
  color: #ffffff;
}

.gr-accordion-item.is-active > .gr-accordion-header:hover {
  background-color: var(--gr-primary-hover);
}

/* Content Container (2-Column Grid) */
.gr-accordion-content {
  display: none;
  background: var(--gr-bg-card);
  padding: 30px;
}

.gr-accordion-item.is-active > .gr-accordion-content {
  display: block;
}

.gr-single-page-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: start;
}

/* ==========================================================================
   Left Column: Live Card Preview
   ========================================================================== */
.gr-card-preview-container {
  background: #ffffff;
  border: 1px solid var(--gr-border-color);
  border-radius: var(--gr-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--gr-shadow-md);
  transition: box-shadow 0.3s ease;
}

.gr-card-preview-container:hover {
  box-shadow: var(--gr-shadow-hover);
}

.gr-card-preview-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.gr-card-artwork-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--gr-bg-subtle);
  border-radius: var(--gr-radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--gr-shadow-inner);
}

.gr-card-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gr-card-info-section {
  padding: 24px 16px 16px;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  margin-top: 20px;
}

.gr-card-product-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.gr-card-dynamic-amount {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 auto 8px;
  display: inline-block;
  position: relative;
  letter-spacing: -0.02em;
}

.gr-card-amount-underline {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--gr-primary) 0%, #a855f7 100%);
  margin: 0 auto 20px;
  border-radius: 4px;
}

.gr-card-barcode-wrapper {
  margin: 12px auto;
  max-width: 180px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.gr-card-barcode-wrapper.is-qr {
  max-width: 60px;
  height: 60px;
}

.gr-card-barcode-wrapper img,
.gr-card-barcode-wrapper svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gr-card-footer-note {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 20px 0 0;
  text-align: center;
  border-top: 1px dashed #e2e8f0;
  padding-top: 16px;
}

/* ==========================================================================
   Right Column: Options & Customizer
   ========================================================================== */
.gr-customizer-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gr-product-description {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.gr-form-main-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.gr-section-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

/* Amount Selector */
.gr-amount-selector-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gr-preset-amounts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gr-amount-btn {
  background: #ffffff;
  border: 1px solid var(--gr-border-color);
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--gr-radius-lg);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 80px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.gr-amount-btn:hover {
  border-color: var(--gr-primary);
  color: var(--gr-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(117, 73, 198, 0.1);
}

.gr-amount-btn.is-selected {
  background: linear-gradient(135deg, var(--gr-primary) 0%, #6136b0 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(117, 73, 198, 0.25);
}

.gr-custom-amount-wrapper {
  margin-top: 6px;
}

.gr-custom-amount-input {
  width: 100%;
  max-width: 400px;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: var(--gr-radius-md);
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--gr-shadow-inner);
}

.gr-custom-amount-input:hover {
  border-color: #94a3b8;
}

.gr-custom-amount-input:focus {
  border-color: var(--gr-primary);
  box-shadow: 0 0 0 4px rgba(117, 73, 198, 0.15);
}

.gr-custom-amount-input::placeholder {
  color: #94a3b8;
}

/* Design Selector Gallery */
.gr-design-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gr-design-thumbnail-card {
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: var(--gr-radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gr-design-thumbnail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  border-color: var(--gr-primary-light);
}

.gr-design-thumbnail-card.is-selected {
  border-color: var(--gr-primary);
  box-shadow: 0 8px 20px rgba(117, 73, 198, 0.2);
  transform: scale(1.02);
}

.gr-design-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Recipient Checkbox & Optional Fields */
.gr-recipient-toggle-wrap {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
  margin-top: 10px;
}

.gr-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.gr-checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: var(--gr-primary);
  cursor: pointer;
  border-radius: 4px;
}

.gr-recipient-custom-fields {
  margin-top: 18px;
  display: none;
  grid-template-columns: 1fr;
  gap: 14px;
  background: var(--gr-bg-subtle);
  padding: 20px;
  border-radius: var(--gr-radius-lg);
  border: 1px solid #e2e8f0;
}

.gr-recipient-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.gr-field-wrap {
  margin-bottom: 0;
}

.gr-field-full {
  grid-column: 1 / -1;
}

.gr-field-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--gr-radius-sm);
  outline: none;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: var(--gr-shadow-inner);
}

.gr-field-input:hover {
  border-color: #94a3b8;
}

.gr-field-input:focus {
  border-color: var(--gr-primary);
  box-shadow: 0 0 0 4px rgba(117, 73, 198, 0.15);
}

.gr-msg-char-counter-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.gr-char-counter {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Card Logo Header */
.gr-card-logo-header {
  text-align: center;
  padding: 10px 10px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.gr-card-site-logo {
  max-height: 42px;
  max-width: 180px;
  object-fit: contain;
  display: inline-block;
}

.gr-card-site-name {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Card Current Date */
.gr-card-current-date {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
}

/* Page Container Wrapper */
.giftrocketsure-page-container {
  padding: 60px 20px;
  background: #f8fafc;
  min-height: 80vh;
}

.giftrocketsure-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ==========================================================================
   Bottom Action Bar
   ========================================================================== */
.gr-bottom-action-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.gr-quantity-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: var(--gr-radius-sm);
  overflow: hidden;
  background: #ffffff;
  height: 44px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: border-color 0.2s ease;
}

.gr-quantity-stepper:focus-within {
  border-color: var(--gr-primary);
  box-shadow: 0 0 0 3px rgba(117, 73, 198, 0.15);
}

.gr-qty-btn {
  background: transparent;
  border: none;
  width: 40px;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  font-size: 18px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.gr-qty-btn:hover {
  background-color: #f1f5f9;
  color: var(--gr-primary);
}

.gr-qty-input {
  width: 48px;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  -moz-appearance: textfield;
}

.gr-qty-input::-webkit-outer-spin-button,
.gr-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gr-add-to-cart-btn {
  background: linear-gradient(135deg, var(--gr-primary) 0%, #6136b0 100%);
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 0 32px;
  border-radius: var(--gr-radius-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  box-shadow: 0 6px 16px rgba(117, 73, 198, 0.3);
}

.gr-add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(117, 73, 198, 0.4);
}

.gr-add-to-cart-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(117, 73, 198, 0.3);
}

.gr-add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Feedback message */
.gr-feedback-notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--gr-radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.gr-feedback-notice.is-success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.gr-feedback-notice.is-error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Spinner */
.gr-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: grSpin 0.7s linear infinite;
}

@keyframes grSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Custom Image Uploader Card */
.gr-custom-image-uploader-card {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--gr-bg-subtle);
  border: 2px dashed #cbd5e1;
  border-radius: var(--gr-radius-md);
  transition: all 0.25s ease;
}

.gr-custom-image-uploader-card:hover,
.gr-custom-image-uploader-card.is-dragover {
  border-color: var(--gr-primary);
  background: var(--gr-primary-light);
}

.gr-uploader-idle-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.gr-uploader-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.gr-uploader-icon {
  font-size: 26px;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
  color: var(--gr-primary);
}

.gr-uploader-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.gr-uploader-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

.gr-uploader-text span {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
}

.gr-btn-upload-trigger {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--gr-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  flex-shrink: 0;
  white-space: nowrap;
}

.gr-btn-upload-trigger:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.gr-custom-image-file {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.gr-uploader-active-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.gr-custom-image-thumb-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gr-custom-image-thumb-preview {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.gr-custom-image-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gr-custom-image-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gr-custom-image-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.02em;
}

.gr-btn-remove-custom-image {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--gr-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gr-btn-remove-custom-image:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* Guest Log In Upload Card */
.gr-custom-image-guest-card {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
}

.gr-custom-image-guest-card .gr-uploader-icon {
  font-size: 22px;
  opacity: 0.75;
}

.gr-btn-upload-login {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gr-primary);
  background: #ffffff;
  border: 1px solid var(--gr-primary);
  border-radius: var(--gr-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gr-btn-upload-login:hover {
  background: var(--gr-primary);
  color: #ffffff;
}

/* Actions on Uploaded Artwork */
.gr-custom-image-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gr-btn-recrop-custom-image {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--gr-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gr-btn-recrop-custom-image:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Cropper Modal */
.gr-cropper-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.gr-cropper-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  margin: auto;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: grModalSlideIn 0.22s ease-out;
}

@keyframes grModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gr-cropper-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.gr-cropper-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gr-cropper-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gr-cropper-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.gr-cropper-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.gr-cropper-close-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.gr-cropper-modal-body {
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
}

.gr-cropper-canvas-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 52vh;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.gr-cropper-canvas-wrap img {
  display: block;
  max-width: 100%;
}

/* Hide outer dim mask, blue point handles, and checkerboard to ensure clean edge-to-edge frame */
.gr-cropper-canvas-wrap .cropper-modal {
  opacity: 0 !important;
  background-color: transparent !important;
}

.gr-cropper-canvas-wrap .cropper-view-box {
  outline: none !important;
  border-radius: 12px;
}

.gr-cropper-canvas-wrap .cropper-point,
.gr-cropper-canvas-wrap .cropper-line {
  display: none !important;
}

.gr-cropper-canvas-wrap .cropper-bg {
  background-image: none !important;
  background-color: #0f172a !important;
}

.gr-cropper-canvas-wrap .cropper-dashed {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.gr-cropper-ratio-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(30, 41, 59, 0.88);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Toolbar Controls Card */
.gr-cropper-controls-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.gr-cropper-zoom-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.gr-cropper-btn-square {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.gr-cropper-btn-square:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.gr-cropper-slider-track-wrap {
  flex: 1;
  min-width: 80px;
  display: flex;
  align-items: center;
}

.gr-cropper-zoom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  outline: none;
  margin: 0;
  cursor: pointer;
}

.gr-cropper-zoom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gr-primary, #6c5ce7);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(108, 92, 231, 0.45);
  border: none;
  transition: transform 0.15s ease;
}

.gr-cropper-zoom-range::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.gr-cropper-zoom-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gr-primary, #6c5ce7);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(108, 92, 231, 0.45);
}

.gr-cropper-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gr-cropper-action-btn {
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gr-cropper-action-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.gr-cropper-action-btn svg {
  color: #475569;
}

/* Hint text */
.gr-cropper-hint-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  margin-top: -2px;
}

.gr-cropper-hint-icon {
  flex-shrink: 0;
  color: #64748b;
}

/* Footer */
.gr-cropper-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.gr-cropper-cancel-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gr-cropper-cancel-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.gr-cropper-apply-btn {
  background: var(--gr-primary, #6c5ce7);
  border: none;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(108, 92, 231, 0.25);
}

.gr-cropper-apply-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 8px rgba(108, 92, 231, 0.35);
}

/* Scheduled Delivery Wrap */
.gr-schedule-delivery-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}

.gr-schedule-fields {
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--gr-bg-subtle);
  border: 1px solid #e2e8f0;
  border-radius: var(--gr-radius-lg);
}

.gr-schedule-date-input {
  max-width: 280px;
}

.gr-field-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

/* Edit in Cart Link */
.gr-edit-cart-item-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gr-primary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.2s ease;
}

.gr-edit-cart-item-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 860px) {
  .gr-single-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gr-card-preview-container {
    max-width: 460px;
    margin: 0 auto;
  }

  .gr-design-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .gr-design-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gr-recipient-custom-fields {
    grid-template-columns: 1fr;
  }

  .gr-field-full {
    grid-column: span 1;
  }

  .gr-bottom-action-bar {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Utility Classes & Inline CSS Replacements
   ========================================================================== */
.gr-d-none {
  display: none !important;
}

.gr-d-block {
  display: block !important;
}

.gr-required-asterisk {
  color: #ef4444;
  font-weight: 700;
  margin-left: 2px;
}

.gr-preview-message-quote {
  font-size: 14px;
  color: #4b5563;
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  padding: 0 15px;
  display: none;
}

/* ==========================================================================
   Checkout Dedicated Gift Card Component
   ========================================================================== */
.giftrocket-checkout-giftcard-wrap {
  margin: 14px 0 18px 0;
  font-family: inherit;
  display: block;
}
.gr-giftcard-toggle-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--sc-color-primary-500, #0b57d0);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: underline;
  transition: opacity 0.15s ease;
}
.gr-giftcard-toggle-btn:hover {
  opacity: 0.8;
}
.gr-giftcard-form-box {
  margin-top: 10px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-sizing: border-box;
}
.gr-giftcard-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gr-giftcard-input {
  flex: 1;
  min-width: 170px;
  padding: 9px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-sizing: border-box;
}
.gr-giftcard-input:focus {
  outline: none;
  border-color: var(--sc-color-primary-500, #0b57d0);
  box-shadow: 0 0 0 2px rgba(11, 87, 208, 0.15);
}
.gr-giftcard-apply-btn {
  padding: 9px 16px;
  background: var(--sc-color-primary-500, #0b57d0);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  box-sizing: border-box;
}
.gr-giftcard-apply-btn:hover {
  opacity: 0.9;
}
.gr-giftcard-apply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.gr-giftcard-feedback {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.gr-giftcard-feedback.is-success {
  color: #067647;
  font-weight: 500;
}
.gr-giftcard-feedback.is-error {
  color: #b42318;
}
.gr-giftcard-applied-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  border-radius: 6px;
  font-size: 13px;
  color: #067647;
  margin-top: 10px;
}
.gr-giftcard-remove-btn {
  background: none;
  border: none;
  color: #b42318;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 8px;
  font-weight: 500;
}
.gr-giftcard-remove-btn:hover {
  color: #912018;
}

/* ==========================================================================
   Gift Card Archive / Catalog "View gift card" Button Styling
   ========================================================================== */
.giftrocket-archive-button-wrap {
  display: inline-block;
  width: 100%;
}

.giftrocket-archive-buy-btn,
.gr-gift-card-product-card .sc-product-card__button.giftrocket-archive-buy-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10 !important;
}

.giftrocket-archive-buy-btn:hover,
.gr-gift-card-product-card .sc-product-card__button.giftrocket-archive-buy-btn:hover {
  background: #f8fafc !important;
  color: #7549c6 !important;
  border-color: rgba(117, 73, 198, 0.3) !important;
  box-shadow: 0 4px 12px rgba(117, 73, 198, 0.15) !important;
  transform: translateY(-1px);
}

.giftrocket-archive-buy-btn:active,
.gr-gift-card-product-card .sc-product-card__button.giftrocket-archive-buy-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
}

.gr-gift-card-product-card .sc-product-card__button svg {
  display: none !important;
}

.gr-archive-btn-text {
  display: inline-block;
  color: inherit;
}

/* ==========================================================================
   GiftRocket - Gift Card Balance Checker Shortcode Styles
   ========================================================================== */

.giftrocket-balance-checker {
  max-width: 520px;
  margin: 32px auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gr-text-main, #1e293b);
  box-sizing: border-box;
}

.giftrocket-balance-checker *,
.giftrocket-balance-checker *::before,
.giftrocket-balance-checker *::after {
  box-sizing: border-box;
}

.giftrocket-balance-checker .gr-balance-card {
  background: var(--gr-bg-card, #ffffff);
  border: 1px solid var(--gr-border-color, #e2e8f0);
  border-radius: var(--gr-radius-lg, 16px);
  padding: 32px 28px;
  box-shadow: var(--gr-shadow-md, 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03));
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.giftrocket-balance-checker .gr-balance-header {
  text-align: center;
  margin-bottom: 24px;
}

.giftrocket-balance-checker .gr-balance-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(117, 73, 198, 0.12), rgba(117, 73, 198, 0.04));
  color: var(--gr-primary, #7549c6);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(117, 73, 198, 0.08);
}

.giftrocket-balance-checker .gr-balance-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gr-text-main, #1e293b);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.giftrocket-balance-checker .gr-balance-desc {
  font-size: 14px;
  color: var(--gr-text-muted, #64748b);
  margin: 0;
  line-height: 1.5;
}

/* Input & Form */
.giftrocket-balance-checker .giftrocket-balance-check-form {
  margin-bottom: 0;
}

.giftrocket-balance-checker .gr-balance-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) {
  .giftrocket-balance-checker .gr-balance-input-group {
    flex-direction: row;
    align-items: stretch;
  }
}

.giftrocket-balance-checker .gr-balance-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.giftrocket-balance-checker .gr-balance-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gr-text-muted, #94a3b8);
  pointer-events: none;
  transition: color 0.2s ease;
}

.giftrocket-balance-checker .gr-balance-input {
  width: 100%;
  padding: 13px 14px 13px 42px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--gr-text-main, #1e293b) !important;
  background: var(--gr-bg-subtle, #f8fafc) !important;
  border: 1.5px solid var(--gr-border-color, #e2e8f0) !important;
  border-radius: var(--gr-radius-sm, 10px) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.giftrocket-balance-checker .gr-balance-input:focus {
  background: #ffffff !important;
  border-color: var(--gr-primary, #7549c6) !important;
  box-shadow: 0 0 0 3px rgba(117, 73, 198, 0.15) !important;
}

.giftrocket-balance-checker .gr-balance-input:focus + .gr-balance-input-icon,
.giftrocket-balance-checker .gr-balance-input-wrap:focus-within .gr-balance-input-icon {
  color: var(--gr-primary, #7549c6);
}

.giftrocket-balance-checker .gr-balance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: var(--gr-primary, #7549c6) !important;
  border: none !important;
  border-radius: var(--gr-radius-sm, 10px) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(117, 73, 198, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.giftrocket-balance-checker .gr-balance-btn:hover {
  background: var(--gr-primary-hover, #6136b0) !important;
  box-shadow: 0 6px 16px rgba(117, 73, 198, 0.35) !important;
  transform: translateY(-1px);
}

.giftrocket-balance-checker .gr-balance-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(117, 73, 198, 0.2) !important;
}

.giftrocket-balance-checker .gr-balance-btn:disabled {
  opacity: 0.75 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.giftrocket-balance-checker .gr-balance-btn-spinner {
  display: none;
  margin-left: 6px;
}

.giftrocket-balance-checker .gr-balance-btn.is-loading .gr-balance-btn-spinner {
  display: inline-flex;
}

/* Alert / Feedback */
.giftrocket-balance-checker .gr-balance-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-top: 18px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  animation: grFadeIn 0.2s ease-out;
}

.giftrocket-balance-checker .gr-balance-alert.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.giftrocket-balance-checker .gr-balance-alert.is-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.giftrocket-balance-checker .gr-balance-alert-icon {
  flex-shrink: 0;
}

/* Result Card */
.giftrocket-balance-checker .gr-balance-result {
  margin-top: 24px;
  padding: 24px 20px;
  background: var(--gr-bg-subtle, #f8fafc);
  border: 1px solid var(--gr-border-color, #e2e8f0);
  border-radius: 14px;
  animation: grSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.giftrocket-balance-checker .gr-balance-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gr-border-color, #e2e8f0);
  gap: 10px;
}

.giftrocket-balance-checker .gr-balance-code-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--gr-text-muted, #64748b);
}

.giftrocket-balance-checker .gr-balance-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  color: var(--gr-text-main, #0f172a);
  letter-spacing: 0.05em;
}

/* Status Badges */
.giftrocket-balance-checker .gr-balance-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.giftrocket-balance-checker .gr-balance-status-badge.status-active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.giftrocket-balance-checker .gr-balance-status-badge.status-used {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.giftrocket-balance-checker .gr-balance-status-badge.status-expired {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.giftrocket-balance-checker .gr-balance-status-badge.status-disabled {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Main Amount Display */
.giftrocket-balance-checker .gr-balance-amount-box {
  text-align: center;
  padding: 22px 0 16px;
}

.giftrocket-balance-checker .gr-balance-amount-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gr-text-muted, #64748b);
  margin-bottom: 6px;
}

.giftrocket-balance-checker .gr-balance-amount-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--gr-text-main, #0f172a);
}

.giftrocket-balance-checker .gr-balance-currency-symbol {
  font-size: 26px;
  font-weight: 700;
  color: var(--gr-primary, #7549c6);
}

.giftrocket-balance-checker .gr-balance-current-value {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.giftrocket-balance-checker .gr-balance-currency-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--gr-text-muted, #64748b);
  margin-left: 2px;
}

/* Details Grid */
.giftrocket-balance-checker .gr-balance-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--gr-border-color, #e2e8f0);
}

.giftrocket-balance-checker .gr-balance-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.giftrocket-balance-checker .gr-detail-label {
  font-size: 12px;
  color: var(--gr-text-muted, #64748b);
}

.giftrocket-balance-checker .gr-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gr-text-main, #1e293b);
}

/* Action button */
.giftrocket-balance-checker .gr-balance-action-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gr-border-color, #e2e8f0);
  text-align: center;
}

.giftrocket-balance-checker .gr-balance-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gr-primary, #7549c6) !important;
  background: #ffffff;
  border: 1.5px solid rgba(117, 73, 198, 0.3);
  border-radius: var(--gr-radius-sm, 10px);
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(117, 73, 198, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.giftrocket-balance-checker .gr-balance-shop-btn:hover {
  background: var(--gr-primary-light, #f4efff);
  border-color: var(--gr-primary, #7549c6);
  color: var(--gr-primary-hover, #6136b0) !important;
  box-shadow: 0 4px 12px rgba(117, 73, 198, 0.12);
  transform: translateY(-1px);
}

/* Animations */
@keyframes grSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.gr-spin-animate {
  animation: grSpin 0.75s linear infinite;
}

@keyframes grFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




